8000 util, refactor: support util.types. · fibjs/fibjs@8129eb2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 8129eb2

Browse files
committed
util, refactor: support util.types.
1 parent 5e5da20 commit 8129eb2

File tree

12 files changed

+2096
-489
lines changed

12 files changed

+2096
-489
lines changed

fibjs/include/ifs/types.h

Lines changed: 683 additions & 0 deletions
Large diffs are not rendered by default.

fibjs/include/ifs/util.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ namespace fibjs {
1818
class LruCache_base;
1919
class TextDecoder_base;
2020
class TextEncoder_base;
21+
class types_base;
2122
class Buffer_base;
2223

2324
class util_base : public object_base {
@@ -161,6 +162,7 @@ class util_base : public object_base {
161162
#include "ifs/LruCache.h"
162163
#include "ifs/TextDecoder.h"
163164
#include "ifs/TextEncoder.h"
165+
#include "ifs/types.h"
164166
#include "ifs/Buffer.h"
165167

166168
namespace fibjs {
@@ -230,7 +232,8 @@ inline ClassInfo& util_base::class_info()
230232
static ClassData::ClassObject s_object[] = {
231233
{ "LruCache", LruCache_base::class_info },
232234
{ "TextDecoder", TextDecoder_base::class_info },
233-
{ "TextEncoder", TextEncoder_base::class_info }
235+
{ "TextEncoder", TextEncoder_base::class_info },
236+
{ "types", types_base::class_info }
234237
};
235238

236239
static ClassData s_cd = {

0 commit comments

Comments
 (0)
0