porffor 0.1.0 → 0.2.0-77e30e8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +184 -204
- package/compiler/2c.js +377 -0
- package/compiler/builtins/base64.js +91 -91
- package/compiler/builtins.js +19 -13
- package/compiler/codeGen.js +1313 -418
- package/compiler/decompile.js +35 -9
- package/compiler/embedding.js +9 -5
- package/compiler/encoding.js +8 -2
- package/compiler/index.js +55 -17
- package/compiler/log.js +15 -0
- package/compiler/opt.js +357 -258
- package/compiler/parse.js +24 -1
- package/compiler/prototype.js +263 -56
- package/compiler/sections.js +51 -8
- package/compiler/wasmSpec.js +3 -0
- package/compiler/wrap.js +21 -7
- package/package.json +6 -1
- package/porf.cmd +1 -1
- package/rhemyn/README.md +37 -0
- package/rhemyn/compile.js +214 -0
- package/rhemyn/parse.js +321 -0
- package/rhemyn/test/parse.js +59 -0
- package/runner/index.js +54 -31
- package/runner/info.js +37 -2
- package/runner/profile.js +1 -2
- package/runner/repl.js +13 -11
- package/runner/results.json +1 -0
- package/runner/transform.js +15 -36
- package/runner/version.js +10 -0
- package/CNAME +0 -1
- package/index.html +0 -1264
- package/logo.png +0 -0
- package/sw.js +0 -26
- package/test/array_1.js +0 -8
- package/test/array_push.js +0 -8
- package/test/assignop_1.js +0 -15
- package/test/bitwise_1.js +0 -6
- package/test/bool_1.js +0 -3
- package/test/boolean.js +0 -6
- package/test/break_1.js +0 -6
- package/test/break_2.js +0 -12
- package/test/conditional_1.js +0 -3
- package/test/conditional_2.js +0 -4
- package/test/console_1.js +0 -2
- package/test/continue_1.js +0 -6
- package/test/continue_2.js +0 -10
- package/test/empty.js +0 -1
- package/test/ending_exp_1.js +0 -2
- package/test/ending_exp_2.js +0 -6
- package/test/eq_1.js +0 -4
- package/test/eq_2.js +0 -4
- package/test/eq_3.js +0 -5
- package/test/export_1.js +0 -9
- package/test/factorial.js +0 -3
- package/test/fibonacci.js +0 -16
- package/test/float_div0.js +0 -2
- package/test/float_frac.js +0 -2
- package/test/float_isfinite.js +0 -29
- package/test/float_isinteger.js +0 -13
- package/test/float_isnan.js +0 -20
- package/test/float_issafeinteger.js +0 -11
- package/test/float_large.js +0 -2
- package/test/float_math_funcs.js +0 -24
- package/test/float_math_random.js +0 -6
- package/test/float_nan.js +0 -3
- package/test/float_number_values.js +0 -12
- package/test/for_1.js +0 -4
- package/test/for_2.js +0 -4
- package/test/func_1.js +0 -16
- package/test/func_2.js +0 -6
- package/test/func_3.js +0 -10
- package/test/global_1.js +0 -8
- package/test/global_2.js +0 -10
- package/test/if_1.js +0 -6
- package/test/if_2.js +0 -9
- package/test/if_3.js +0 -7
- package/test/iife_1.js +0 -8
- package/test/iife_2.js +0 -8
- package/test/index.js +0 -93
- package/test/int_number_values.js +0 -6
- package/test/logic_1.js +0 -7
- package/test/logic_2.js +0 -7
- package/test/math_1.js +0 -6
- package/test/math_2.js +0 -12
- package/test/math_3.js +0 -6
- package/test/number_func.js +0 -4
- package/test/return_1.js +0 -8
- package/test/return_2.js +0 -11
- package/test/tailcall_1.js +0 -10
- package/test/throw_1.js +0 -2
- package/test/throw_2.js +0 -4
- package/test/throw_3.js +0 -2
- package/test/throw_4.js +0 -3
- package/test/try_1.js +0 -7
- package/test/unary_1.js +0 -4
- package/test/unary_2.js +0 -5
- package/test/unary_3.js +0 -6
- package/test/unary_4.js +0 -12
- package/test/unary_5.js +0 -8
- package/test/undefined_1.js +0 -8
- package/test/undefined_2.js +0 -10
- package/test/updateexp_1.js +0 -9
- package/test/vars_1.js +0 -5
- package/test/vars_2.js +0 -9
- package/test/while_1.js +0 -6
- package/test262/compare.js +0 -30
- package/test262/index.js +0 -314
- package/test262/node_modules/.bin/esparse +0 -12
- package/test262/node_modules/.bin/esparse.cmd +0 -17
- package/test262/node_modules/.bin/esparse.ps1 +0 -28
- package/test262/node_modules/.bin/esvalidate +0 -12
- package/test262/node_modules/.bin/esvalidate.cmd +0 -17
- package/test262/node_modules/.bin/esvalidate.ps1 +0 -28
- package/test262/node_modules/.bin/js-yaml +0 -12
- package/test262/node_modules/.bin/js-yaml.cmd +0 -17
- package/test262/node_modules/.bin/js-yaml.ps1 +0 -28
- package/test262/node_modules/.package-lock.json +0 -0
- package/test262/node_modules/@nodelib/fs.scandir/LICENSE +0 -21
- package/test262/node_modules/@nodelib/fs.scandir/README.md +0 -171
- package/test262/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
- package/test262/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +0 -19
- package/test262/node_modules/@nodelib/fs.scandir/out/constants.d.ts +0 -4
- package/test262/node_modules/@nodelib/fs.scandir/out/constants.js +0 -17
- package/test262/node_modules/@nodelib/fs.scandir/out/index.d.ts +0 -12
- package/test262/node_modules/@nodelib/fs.scandir/out/index.js +0 -26
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/async.js +0 -104
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +0 -1
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/common.js +0 -13
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +0 -5
- package/test262/node_modules/@nodelib/fs.scandir/out/providers/sync.js +0 -54
- package/test262/node_modules/@nodelib/fs.scandir/out/settings.d.ts +0 -20
- package/test262/node_modules/@nodelib/fs.scandir/out/settings.js +0 -24
- package/test262/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
- package/test262/node_modules/@nodelib/fs.scandir/out/types/index.js +0 -2
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +0 -2
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/fs.js +0 -19
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +0 -2
- package/test262/node_modules/@nodelib/fs.scandir/out/utils/index.js +0 -5
- package/test262/node_modules/@nodelib/fs.scandir/package.json +0 -44
- package/test262/node_modules/@nodelib/fs.stat/LICENSE +0 -21
- package/test262/node_modules/@nodelib/fs.stat/README.md +0 -126
- package/test262/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
- package/test262/node_modules/@nodelib/fs.stat/out/adapters/fs.js +0 -17
- package/test262/node_modules/@nodelib/fs.stat/out/index.d.ts +0 -12
- package/test262/node_modules/@nodelib/fs.stat/out/index.js +0 -26
- package/test262/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
- package/test262/node_modules/@nodelib/fs.stat/out/providers/async.js +0 -36
- package/test262/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +0 -3
- package/test262/node_modules/@nodelib/fs.stat/out/providers/sync.js +0 -23
- package/test262/node_modules/@nodelib/fs.stat/out/settings.d.ts +0 -16
- package/test262/node_modules/@nodelib/fs.stat/out/settings.js +0 -16
- package/test262/node_modules/@nodelib/fs.stat/out/types/index.d.ts +0 -4
- package/test262/node_modules/@nodelib/fs.stat/out/types/index.js +0 -2
- package/test262/node_modules/@nodelib/fs.stat/package.json +0 -37
- package/test262/node_modules/@nodelib/fs.walk/LICENSE +0 -21
- package/test262/node_modules/@nodelib/fs.walk/README.md +0 -215
- package/test262/node_modules/@nodelib/fs.walk/out/index.d.ts +0 -14
- package/test262/node_modules/@nodelib/fs.walk/out/index.js +0 -34
- package/test262/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
- package/test262/node_modules/@nodelib/fs.walk/out/providers/async.js +0 -30
- package/test262/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +0 -4
- package/test262/node_modules/@nodelib/fs.walk/out/providers/index.js +0 -9
- package/test262/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +0 -12
- package/test262/node_modules/@nodelib/fs.walk/out/providers/stream.js +0 -34
- package/test262/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +0 -10
- package/test262/node_modules/@nodelib/fs.walk/out/providers/sync.js +0 -14
- package/test262/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
- package/test262/node_modules/@nodelib/fs.walk/out/readers/async.js +0 -97
- package/test262/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +0 -7
- package/test262/node_modules/@nodelib/fs.walk/out/readers/common.js +0 -31
- package/test262/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
- package/test262/node_modules/@nodelib/fs.walk/out/readers/reader.js +0 -11
- package/test262/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +0 -15
- package/test262/node_modules/@nodelib/fs.walk/out/readers/sync.js +0 -59
- package/test262/node_modules/@nodelib/fs.walk/out/settings.d.ts +0 -30
- package/test262/node_modules/@nodelib/fs.walk/out/settings.js +0 -26
- package/test262/node_modules/@nodelib/fs.walk/out/types/index.d.ts +0 -8
- package/test262/node_modules/@nodelib/fs.walk/out/types/index.js +0 -2
- package/test262/node_modules/@nodelib/fs.walk/package.json +0 -44
- package/test262/node_modules/argparse/CHANGELOG.md +0 -185
- package/test262/node_modules/argparse/LICENSE +0 -21
- package/test262/node_modules/argparse/README.md +0 -257
- package/test262/node_modules/argparse/index.js +0 -3
- package/test262/node_modules/argparse/lib/action/append/constant.js +0 -47
- package/test262/node_modules/argparse/lib/action/append.js +0 -53
- package/test262/node_modules/argparse/lib/action/count.js +0 -40
- package/test262/node_modules/argparse/lib/action/help.js +0 -47
- package/test262/node_modules/argparse/lib/action/store/constant.js +0 -43
- package/test262/node_modules/argparse/lib/action/store/false.js +0 -27
- package/test262/node_modules/argparse/lib/action/store/true.js +0 -26
- package/test262/node_modules/argparse/lib/action/store.js +0 -50
- package/test262/node_modules/argparse/lib/action/subparsers.js +0 -149
- package/test262/node_modules/argparse/lib/action/version.js +0 -47
- package/test262/node_modules/argparse/lib/action.js +0 -146
- package/test262/node_modules/argparse/lib/action_container.js +0 -482
- package/test262/node_modules/argparse/lib/argparse.js +0 -14
- package/test262/node_modules/argparse/lib/argument/error.js +0 -50
- package/test262/node_modules/argparse/lib/argument/exclusive.js +0 -54
- package/test262/node_modules/argparse/lib/argument/group.js +0 -75
- package/test262/node_modules/argparse/lib/argument_parser.js +0 -1161
- package/test262/node_modules/argparse/lib/const.js +0 -21
- package/test262/node_modules/argparse/lib/help/added_formatters.js +0 -87
- package/test262/node_modules/argparse/lib/help/formatter.js +0 -795
- package/test262/node_modules/argparse/lib/namespace.js +0 -76
- package/test262/node_modules/argparse/lib/utils.js +0 -57
- package/test262/node_modules/argparse/package.json +0 -34
- package/test262/node_modules/braces/CHANGELOG.md +0 -184
- package/test262/node_modules/braces/LICENSE +0 -21
- package/test262/node_modules/braces/README.md +0 -593
- package/test262/node_modules/braces/index.js +0 -170
- package/test262/node_modules/braces/lib/compile.js +0 -57
- package/test262/node_modules/braces/lib/constants.js +0 -57
- package/test262/node_modules/braces/lib/expand.js +0 -113
- package/test262/node_modules/braces/lib/parse.js +0 -333
- package/test262/node_modules/braces/lib/stringify.js +0 -32
- package/test262/node_modules/braces/lib/utils.js +0 -112
- package/test262/node_modules/braces/package.json +0 -77
- package/test262/node_modules/esprima/ChangeLog +0 -235
- package/test262/node_modules/esprima/LICENSE.BSD +0 -21
- package/test262/node_modules/esprima/README.md +0 -46
- package/test262/node_modules/esprima/bin/esparse.js +0 -139
- package/test262/node_modules/esprima/bin/esvalidate.js +0 -236
- package/test262/node_modules/esprima/dist/esprima.js +0 -6709
- package/test262/node_modules/esprima/package.json +0 -112
- package/test262/node_modules/fast-glob/LICENSE +0 -21
- package/test262/node_modules/fast-glob/README.md +0 -859
- package/test262/node_modules/fast-glob/out/index.d.ts +0 -40
- package/test262/node_modules/fast-glob/out/index.js +0 -102
- package/test262/node_modules/fast-glob/out/managers/tasks.d.ts +0 -22
- package/test262/node_modules/fast-glob/out/managers/tasks.js +0 -110
- package/test262/node_modules/fast-glob/out/providers/async.d.ts +0 -9
- package/test262/node_modules/fast-glob/out/providers/async.js +0 -23
- package/test262/node_modules/fast-glob/out/providers/filters/deep.d.ts +0 -16
- package/test262/node_modules/fast-glob/out/providers/filters/deep.js +0 -62
- package/test262/node_modules/fast-glob/out/providers/filters/entry.d.ts +0 -16
- package/test262/node_modules/fast-glob/out/providers/filters/entry.js +0 -63
- package/test262/node_modules/fast-glob/out/providers/filters/error.d.ts +0 -8
- package/test262/node_modules/fast-glob/out/providers/filters/error.js +0 -15
- package/test262/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +0 -33
- package/test262/node_modules/fast-glob/out/providers/matchers/matcher.js +0 -45
- package/test262/node_modules/fast-glob/out/providers/matchers/partial.d.ts +0 -4
- package/test262/node_modules/fast-glob/out/providers/matchers/partial.js +0 -38
- package/test262/node_modules/fast-glob/out/providers/provider.d.ts +0 -19
- package/test262/node_modules/fast-glob/out/providers/provider.js +0 -48
- package/test262/node_modules/fast-glob/out/providers/stream.d.ts +0 -11
- package/test262/node_modules/fast-glob/out/providers/stream.js +0 -31
- package/test262/node_modules/fast-glob/out/providers/sync.d.ts +0 -9
- package/test262/node_modules/fast-glob/out/providers/sync.js +0 -23
- package/test262/node_modules/fast-glob/out/providers/transformers/entry.d.ts +0 -8
- package/test262/node_modules/fast-glob/out/providers/transformers/entry.js +0 -26
- package/test262/node_modules/fast-glob/out/readers/async.d.ts +0 -10
- package/test262/node_modules/fast-glob/out/readers/async.js +0 -35
- package/test262/node_modules/fast-glob/out/readers/reader.d.ts +0 -15
- package/test262/node_modules/fast-glob/out/readers/reader.js +0 -33
- package/test262/node_modules/fast-glob/out/readers/stream.d.ts +0 -14
- package/test262/node_modules/fast-glob/out/readers/stream.js +0 -55
- package/test262/node_modules/fast-glob/out/readers/sync.d.ts +0 -12
- package/test262/node_modules/fast-glob/out/readers/sync.js +0 -43
- package/test262/node_modules/fast-glob/out/settings.d.ts +0 -164
- package/test262/node_modules/fast-glob/out/settings.js +0 -57
- package/test262/node_modules/fast-glob/out/types/index.d.ts +0 -31
- package/test262/node_modules/fast-glob/out/types/index.js +0 -2
- package/test262/node_modules/fast-glob/out/utils/array.d.ts +0 -2
- package/test262/node_modules/fast-glob/out/utils/array.js +0 -22
- package/test262/node_modules/fast-glob/out/utils/errno.d.ts +0 -2
- package/test262/node_modules/fast-glob/out/utils/errno.js +0 -7
- package/test262/node_modules/fast-glob/out/utils/fs.d.ts +0 -4
- package/test262/node_modules/fast-glob/out/utils/fs.js +0 -19
- package/test262/node_modules/fast-glob/out/utils/index.d.ts +0 -8
- package/test262/node_modules/fast-glob/out/utils/index.js +0 -17
- package/test262/node_modules/fast-glob/out/utils/path.d.ts +0 -13
- package/test262/node_modules/fast-glob/out/utils/path.js +0 -68
- package/test262/node_modules/fast-glob/out/utils/pattern.d.ts +0 -47
- package/test262/node_modules/fast-glob/out/utils/pattern.js +0 -188
- package/test262/node_modules/fast-glob/out/utils/stream.d.ts +0 -4
- package/test262/node_modules/fast-glob/out/utils/stream.js +0 -17
- package/test262/node_modules/fast-glob/out/utils/string.d.ts +0 -2
- package/test262/node_modules/fast-glob/out/utils/string.js +0 -11
- package/test262/node_modules/fast-glob/package.json +0 -81
- package/test262/node_modules/fastq/.github/dependabot.yml +0 -11
- package/test262/node_modules/fastq/.github/workflows/ci.yml +0 -50
- package/test262/node_modules/fastq/LICENSE +0 -13
- package/test262/node_modules/fastq/README.md +0 -309
- package/test262/node_modules/fastq/bench.js +0 -66
- package/test262/node_modules/fastq/example.js +0 -14
- package/test262/node_modules/fastq/example.mjs +0 -11
- package/test262/node_modules/fastq/index.d.ts +0 -37
- package/test262/node_modules/fastq/package.json +0 -52
- package/test262/node_modules/fastq/queue.js +0 -289
- package/test262/node_modules/fastq/test/example.ts +0 -81
- package/test262/node_modules/fastq/test/promise.js +0 -248
- package/test262/node_modules/fastq/test/test.js +0 -566
- package/test262/node_modules/fastq/test/tsconfig.json +0 -11
- package/test262/node_modules/fill-range/LICENSE +0 -21
- package/test262/node_modules/fill-range/README.md +0 -237
- package/test262/node_modules/fill-range/index.js +0 -249
- package/test262/node_modules/fill-range/package.json +0 -69
- package/test262/node_modules/glob-parent/CHANGELOG.md +0 -110
- package/test262/node_modules/glob-parent/LICENSE +0 -15
- package/test262/node_modules/glob-parent/README.md +0 -137
- package/test262/node_modules/glob-parent/index.js +0 -42
- package/test262/node_modules/glob-parent/package.json +0 -48
- package/test262/node_modules/graceful-fs/LICENSE +0 -15
- package/test262/node_modules/graceful-fs/README.md +0 -143
- package/test262/node_modules/graceful-fs/clone.js +0 -23
- package/test262/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/test262/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/test262/node_modules/graceful-fs/package.json +0 -53
- package/test262/node_modules/graceful-fs/polyfills.js +0 -355
- package/test262/node_modules/is-extglob/LICENSE +0 -21
- package/test262/node_modules/is-extglob/README.md +0 -107
- package/test262/node_modules/is-extglob/index.js +0 -20
- package/test262/node_modules/is-extglob/package.json +0 -69
- package/test262/node_modules/is-glob/LICENSE +0 -21
- package/test262/node_modules/is-glob/README.md +0 -206
- package/test262/node_modules/is-glob/index.js +0 -150
- package/test262/node_modules/is-glob/package.json +0 -81
- package/test262/node_modules/is-number/LICENSE +0 -21
- package/test262/node_modules/is-number/README.md +0 -187
- package/test262/node_modules/is-number/index.js +0 -18
- package/test262/node_modules/is-number/package.json +0 -82
- package/test262/node_modules/js-yaml/CHANGELOG.md +0 -557
- package/test262/node_modules/js-yaml/LICENSE +0 -21
- package/test262/node_modules/js-yaml/README.md +0 -299
- package/test262/node_modules/js-yaml/bin/js-yaml.js +0 -132
- package/test262/node_modules/js-yaml/dist/js-yaml.js +0 -3989
- package/test262/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
- package/test262/node_modules/js-yaml/index.js +0 -7
- package/test262/node_modules/js-yaml/lib/js-yaml/common.js +0 -59
- package/test262/node_modules/js-yaml/lib/js-yaml/dumper.js +0 -850
- package/test262/node_modules/js-yaml/lib/js-yaml/exception.js +0 -43
- package/test262/node_modules/js-yaml/lib/js-yaml/loader.js +0 -1644
- package/test262/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/core.js +0 -18
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +0 -28
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +0 -17
- package/test262/node_modules/js-yaml/lib/js-yaml/schema/json.js +0 -25
- package/test262/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
- package/test262/node_modules/js-yaml/lib/js-yaml/type/binary.js +0 -138
- package/test262/node_modules/js-yaml/lib/js-yaml/type/bool.js +0 -35
- package/test262/node_modules/js-yaml/lib/js-yaml/type/float.js +0 -116
- package/test262/node_modules/js-yaml/lib/js-yaml/type/int.js +0 -173
- package/test262/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
- package/test262/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
- package/test262/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
- package/test262/node_modules/js-yaml/lib/js-yaml/type/map.js +0 -8
- package/test262/node_modules/js-yaml/lib/js-yaml/type/merge.js +0 -12
- package/test262/node_modules/js-yaml/lib/js-yaml/type/null.js +0 -34
- package/test262/node_modules/js-yaml/lib/js-yaml/type/omap.js +0 -44
- package/test262/node_modules/js-yaml/lib/js-yaml/type/pairs.js +0 -53
- package/test262/node_modules/js-yaml/lib/js-yaml/type/seq.js +0 -8
- package/test262/node_modules/js-yaml/lib/js-yaml/type/set.js +0 -29
- package/test262/node_modules/js-yaml/lib/js-yaml/type/str.js +0 -8
- package/test262/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +0 -88
- package/test262/node_modules/js-yaml/lib/js-yaml/type.js +0 -61
- package/test262/node_modules/js-yaml/lib/js-yaml.js +0 -39
- package/test262/node_modules/js-yaml/package.json +0 -49
- package/test262/node_modules/klaw/CHANGELOG.md +0 -62
- package/test262/node_modules/klaw/LICENSE +0 -15
- package/test262/node_modules/klaw/README.md +0 -252
- package/test262/node_modules/klaw/package.json +0 -40
- package/test262/node_modules/klaw/src/index.js +0 -56
- package/test262/node_modules/merge2/LICENSE +0 -21
- package/test262/node_modules/merge2/README.md +0 -144
- package/test262/node_modules/merge2/index.js +0 -144
- package/test262/node_modules/merge2/package.json +0 -43
- package/test262/node_modules/micromatch/LICENSE +0 -21
- package/test262/node_modules/micromatch/README.md +0 -1011
- package/test262/node_modules/micromatch/index.js +0 -467
- package/test262/node_modules/micromatch/package.json +0 -119
- package/test262/node_modules/picomatch/CHANGELOG.md +0 -136
- package/test262/node_modules/picomatch/LICENSE +0 -21
- package/test262/node_modules/picomatch/README.md +0 -708
- package/test262/node_modules/picomatch/index.js +0 -3
- package/test262/node_modules/picomatch/lib/constants.js +0 -179
- package/test262/node_modules/picomatch/lib/parse.js +0 -1091
- package/test262/node_modules/picomatch/lib/picomatch.js +0 -342
- package/test262/node_modules/picomatch/lib/scan.js +0 -391
- package/test262/node_modules/picomatch/lib/utils.js +0 -64
- package/test262/node_modules/picomatch/package.json +0 -81
- package/test262/node_modules/queue-microtask/LICENSE +0 -20
- package/test262/node_modules/queue-microtask/README.md +0 -90
- package/test262/node_modules/queue-microtask/index.d.ts +0 -2
- package/test262/node_modules/queue-microtask/index.js +0 -9
- package/test262/node_modules/queue-microtask/package.json +0 -55
- package/test262/node_modules/reusify/.coveralls.yml +0 -1
- package/test262/node_modules/reusify/.travis.yml +0 -28
- package/test262/node_modules/reusify/LICENSE +0 -22
- package/test262/node_modules/reusify/README.md +0 -145
- package/test262/node_modules/reusify/benchmarks/createNoCodeFunction.js +0 -30
- package/test262/node_modules/reusify/benchmarks/fib.js +0 -13
- package/test262/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +0 -38
- package/test262/node_modules/reusify/package.json +0 -45
- package/test262/node_modules/reusify/reusify.js +0 -33
- package/test262/node_modules/reusify/test.js +0 -66
- package/test262/node_modules/run-parallel/LICENSE +0 -20
- package/test262/node_modules/run-parallel/README.md +0 -85
- package/test262/node_modules/run-parallel/index.js +0 -51
- package/test262/node_modules/run-parallel/package.json +0 -58
- package/test262/node_modules/sprintf-js/LICENSE +0 -24
- package/test262/node_modules/sprintf-js/README.md +0 -88
- package/test262/node_modules/sprintf-js/bower.json +0 -14
- package/test262/node_modules/sprintf-js/demo/angular.html +0 -20
- package/test262/node_modules/sprintf-js/dist/angular-sprintf.min.js +0 -4
- package/test262/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +0 -1
- package/test262/node_modules/sprintf-js/dist/angular-sprintf.min.map +0 -1
- package/test262/node_modules/sprintf-js/dist/sprintf.min.js +0 -4
- package/test262/node_modules/sprintf-js/dist/sprintf.min.js.map +0 -1
- package/test262/node_modules/sprintf-js/dist/sprintf.min.map +0 -1
- package/test262/node_modules/sprintf-js/gruntfile.js +0 -36
- package/test262/node_modules/sprintf-js/package.json +0 -22
- package/test262/node_modules/sprintf-js/src/angular-sprintf.js +0 -18
- package/test262/node_modules/sprintf-js/src/sprintf.js +0 -208
- package/test262/node_modules/sprintf-js/test/test.js +0 -82
- package/test262/node_modules/test262-stream/.jshintignore +0 -2
- package/test262/node_modules/test262-stream/.jshintrc +0 -6
- package/test262/node_modules/test262-stream/.travis.yml +0 -5
- package/test262/node_modules/test262-stream/CONTRIBUTING.md +0 -37
- package/test262/node_modules/test262-stream/LICENSE-MICROSOFT.txt +0 -27
- package/test262/node_modules/test262-stream/LICENSE.txt +0 -27
- package/test262/node_modules/test262-stream/README.md +0 -71
- package/test262/node_modules/test262-stream/lib/builder.js +0 -46
- package/test262/node_modules/test262-stream/lib/compile.js +0 -24
- package/test262/node_modules/test262-stream/lib/create-scenarios.js +0 -29
- package/test262/node_modules/test262-stream/lib/index.js +0 -187
- package/test262/node_modules/test262-stream/lib/test-file.js +0 -150
- package/test262/node_modules/test262-stream/package.json +0 -26
- package/test262/node_modules/test262-stream/test/collateral/invalid-missing-harness/fake-test262/test/a-test-file.js +0 -16
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/package.json +0 -3
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-other-accepted/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/package.json +0 -3
- package/test262/node_modules/test262-stream/test/collateral/invalid-version-unsupported/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/asyncNegative_default.js +0 -49
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/asyncNegative_strict_mode.js +0 -50
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/async_default.js +0 -48
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/async_strict_mode.js +0 -49
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/bothStrict_default.js +0 -46
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/bothStrict_strict_mode.js +0 -47
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/error_default.js +0 -39
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/error_strict_mode.js +0 -40
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/module_default.js +0 -37
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/module_strict_mode.js +0 -38
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/negative-empty_default.js +0 -37
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/negative-empty_strict_mode.js +0 -38
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/noStrict_default.js +0 -36
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/rawNoStrict_default.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/rawStrict_default.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-content/test/strict_strict_mode.js +0 -41
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/asyncNegative_default.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/asyncNegative_strict_mode.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/async_default.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/async_strict_mode.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/bothStrict_default.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/error_default.json +0 -19
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/error_strict_mode.json +0 -19
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/module_default.json +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/module_strict_mode.json +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/negative-empty_default.json +0 -19
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/negative-empty_strict_mode.json +0 -19
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/noStrict_default.json +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/rawNoStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/rawStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-default/expected-metadata/test/strict_strict_mode.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/async.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/asyncNegative.js +0 -11
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/bothStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/error.js +0 -8
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/module.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/module_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/negative-empty.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/noStrict.js +0 -5
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/rawNoStrict.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/rawStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-default/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-content/test/bothStrict_default.js +0 -46
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-content/test/bothStrict_strict_mode.js +0 -47
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-metadata/test/bothStrict_default.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/bothStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-0_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-1_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-2_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-3_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-4_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-5_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-6_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-7_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-8_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-extra-files/fake-test262/test/zzz-9_FIXTURE.txt +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-content/test/raw_default.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-content/test/runtime_default.js +0 -38
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-content/test/runtime_strict_mode.js +0 -39
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/raw_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/runtime_default.json +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/runtime_strict_mode.json +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/test/raw.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-insertionindex-with-copyright/fake-test262/test/runtime.js +0 -7
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/asyncNegative_default.js +0 -11
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/asyncNegative_strict_mode.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/async_default.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/async_strict_mode.js +0 -11
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/bothStrict_default.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/bothStrict_strict_mode.js +0 -16
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/error_default.js +0 -8
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/error_strict_mode.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/module_default.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/module_strict_mode.js +0 -7
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/negative-empty_default.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/negative-empty_strict_mode.js +0 -7
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/noStrict_default.js +0 -5
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/rawNoStrict_default.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/rawStrict_default.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-content/test/strict_strict_mode.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/asyncNegative_default.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/asyncNegative_strict_mode.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/async_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/async_strict_mode.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/bothStrict_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/bothStrict_strict_mode.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/error_default.json +0 -16
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/error_strict_mode.json +0 -16
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/module_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/module_strict_mode.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/negative-empty_default.json +0 -16
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/negative-empty_strict_mode.json +0 -16
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/noStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/rawNoStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/rawStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/expected-metadata/test/strict_strict_mode.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/async.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/asyncNegative.js +0 -11
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/bothStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/error.js +0 -8
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/module.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/module_FIXTURE.js +0 -2
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/negative-empty.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/noStrict.js +0 -5
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/rawNoStrict.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/rawStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-omit-runtime/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/expected-content/test/strict_strict_mode.js +0 -41
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/expected-metadata/test/strict_strict_mode.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/package.json +0 -3
- package/test262/node_modules/test262-stream/test/collateral/valid-version-ignored/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/expected-content/test/strict_strict_mode.js +0 -41
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/expected-metadata/test/strict_strict_mode.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/package.json +0 -3
- package/test262/node_modules/test262-stream/test/collateral/valid-version-supported/fake-test262/test/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/missing-raw-flag_default.js +0 -44
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/missing-raw-flag_strict_mode.js +0 -45
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls-and-license-on-same-line_default.js +0 -20
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls-multiline-block_default.js +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls_default.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps-and-license-on-same-line_default.js +0 -20
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps-multiline-block_default.js +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps_default.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/rawWithLicense_default.js +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-content/test/raw_default.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_default.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_strict_mode.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls-and-license-on-same-line_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls-multiline-block_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps-and-license-on-same-line_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps-multiline-block_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/rawWithLicense_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/expected-metadata/test/raw_default.json +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/missing-raw-flag.js +0 -13
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-and-license-on-same-line.js +0 -20
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-multiline-block.js +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-and-license-on-same-line.js +0 -20
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-multiline-block.js +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/raw.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-hashbang/fake-test262/test/rawWithLicense.js +0 -21
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/custom-includes/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/custom-includes/doneprintHandle.js +0 -9
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/custom-includes/sta.js +0 -13
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/async_default.js +0 -52
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/async_strict_mode.js +0 -53
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/bothStrict_default.js +0 -47
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-content/test/bothStrict_strict_mode.js +0 -48
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/async_default.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/async_strict_mode.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_default.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/test/async.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-with-includes/fake-test262/test/bothStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_default.js +0 -49
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_strict_mode.js +0 -50
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/async_default.js +0 -48
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/async/async_strict_mode.js +0 -49
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/bothStrict_default.js +0 -46
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/bothStrict_strict_mode.js +0 -47
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/strict/no/noStrict_default.js +0 -36
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-content/test/strict/no/rawNoStrict_default.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_default.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_strict_mode.json +0 -22
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/async_default.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/async/async_strict_mode.json +0 -18
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/bothStrict_default.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/strict/no/noStrict_default.json +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/expected-metadata/test/strict/no/rawNoStrict_default.json +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/harness/assert.js +0 -17
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/harness/doneprintHandle.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/harness/sta.js +0 -12
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/async/async.js +0 -10
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/async/asyncNegative.js +0 -11
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/bothStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/error.js +0 -8
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/negative-empty.js +0 -6
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/no/noStrict.js +0 -5
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/no/rawNoStrict.js +0 -14
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/rawStrict.js +0 -15
- package/test262/node_modules/test262-stream/test/collateral/valid-with-paths/fake-test262/test/strict/strict.js +0 -9
- package/test262/node_modules/test262-stream/test/test.js +0 -319
- package/test262/node_modules/to-regex-range/LICENSE +0 -21
- package/test262/node_modules/to-regex-range/README.md +0 -305
- package/test262/node_modules/to-regex-range/index.js +0 -288
- package/test262/node_modules/to-regex-range/package.json +0 -88
- package/test262/package-lock.json +0 -279
- package/test262/package.json +0 -6
- package/test262/prelude.js +0 -75
- package/test262/results.json +0 -1
@@ -1,173 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var common = require('../common');
|
4
|
-
var Type = require('../type');
|
5
|
-
|
6
|
-
function isHexCode(c) {
|
7
|
-
return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
|
8
|
-
((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
|
9
|
-
((0x61/* a */ <= c) && (c <= 0x66/* f */));
|
10
|
-
}
|
11
|
-
|
12
|
-
function isOctCode(c) {
|
13
|
-
return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));
|
14
|
-
}
|
15
|
-
|
16
|
-
function isDecCode(c) {
|
17
|
-
return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));
|
18
|
-
}
|
19
|
-
|
20
|
-
function resolveYamlInteger(data) {
|
21
|
-
if (data === null) return false;
|
22
|
-
|
23
|
-
var max = data.length,
|
24
|
-
index = 0,
|
25
|
-
hasDigits = false,
|
26
|
-
ch;
|
27
|
-
|
28
|
-
if (!max) return false;
|
29
|
-
|
30
|
-
ch = data[index];
|
31
|
-
|
32
|
-
// sign
|
33
|
-
if (ch === '-' || ch === '+') {
|
34
|
-
ch = data[++index];
|
35
|
-
}
|
36
|
-
|
37
|
-
if (ch === '0') {
|
38
|
-
// 0
|
39
|
-
if (index + 1 === max) return true;
|
40
|
-
ch = data[++index];
|
41
|
-
|
42
|
-
// base 2, base 8, base 16
|
43
|
-
|
44
|
-
if (ch === 'b') {
|
45
|
-
// base 2
|
46
|
-
index++;
|
47
|
-
|
48
|
-
for (; index < max; index++) {
|
49
|
-
ch = data[index];
|
50
|
-
if (ch === '_') continue;
|
51
|
-
if (ch !== '0' && ch !== '1') return false;
|
52
|
-
hasDigits = true;
|
53
|
-
}
|
54
|
-
return hasDigits && ch !== '_';
|
55
|
-
}
|
56
|
-
|
57
|
-
|
58
|
-
if (ch === 'x') {
|
59
|
-
// base 16
|
60
|
-
index++;
|
61
|
-
|
62
|
-
for (; index < max; index++) {
|
63
|
-
ch = data[index];
|
64
|
-
if (ch === '_') continue;
|
65
|
-
if (!isHexCode(data.charCodeAt(index))) return false;
|
66
|
-
hasDigits = true;
|
67
|
-
}
|
68
|
-
return hasDigits && ch !== '_';
|
69
|
-
}
|
70
|
-
|
71
|
-
// base 8
|
72
|
-
for (; index < max; index++) {
|
73
|
-
ch = data[index];
|
74
|
-
if (ch === '_') continue;
|
75
|
-
if (!isOctCode(data.charCodeAt(index))) return false;
|
76
|
-
hasDigits = true;
|
77
|
-
}
|
78
|
-
return hasDigits && ch !== '_';
|
79
|
-
}
|
80
|
-
|
81
|
-
// base 10 (except 0) or base 60
|
82
|
-
|
83
|
-
// value should not start with `_`;
|
84
|
-
if (ch === '_') return false;
|
85
|
-
|
86
|
-
for (; index < max; index++) {
|
87
|
-
ch = data[index];
|
88
|
-
if (ch === '_') continue;
|
89
|
-
if (ch === ':') break;
|
90
|
-
if (!isDecCode(data.charCodeAt(index))) {
|
91
|
-
return false;
|
92
|
-
}
|
93
|
-
hasDigits = true;
|
94
|
-
}
|
95
|
-
|
96
|
-
// Should have digits and should not end with `_`
|
97
|
-
if (!hasDigits || ch === '_') return false;
|
98
|
-
|
99
|
-
// if !base60 - done;
|
100
|
-
if (ch !== ':') return true;
|
101
|
-
|
102
|
-
// base60 almost not used, no needs to optimize
|
103
|
-
return /^(:[0-5]?[0-9])+$/.test(data.slice(index));
|
104
|
-
}
|
105
|
-
|
106
|
-
function constructYamlInteger(data) {
|
107
|
-
var value = data, sign = 1, ch, base, digits = [];
|
108
|
-
|
109
|
-
if (value.indexOf('_') !== -1) {
|
110
|
-
value = value.replace(/_/g, '');
|
111
|
-
}
|
112
|
-
|
113
|
-
ch = value[0];
|
114
|
-
|
115
|
-
if (ch === '-' || ch === '+') {
|
116
|
-
if (ch === '-') sign = -1;
|
117
|
-
value = value.slice(1);
|
118
|
-
ch = value[0];
|
119
|
-
}
|
120
|
-
|
121
|
-
if (value === '0') return 0;
|
122
|
-
|
123
|
-
if (ch === '0') {
|
124
|
-
if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);
|
125
|
-
if (value[1] === 'x') return sign * parseInt(value, 16);
|
126
|
-
return sign * parseInt(value, 8);
|
127
|
-
}
|
128
|
-
|
129
|
-
if (value.indexOf(':') !== -1) {
|
130
|
-
value.split(':').forEach(function (v) {
|
131
|
-
digits.unshift(parseInt(v, 10));
|
132
|
-
});
|
133
|
-
|
134
|
-
value = 0;
|
135
|
-
base = 1;
|
136
|
-
|
137
|
-
digits.forEach(function (d) {
|
138
|
-
value += (d * base);
|
139
|
-
base *= 60;
|
140
|
-
});
|
141
|
-
|
142
|
-
return sign * value;
|
143
|
-
|
144
|
-
}
|
145
|
-
|
146
|
-
return sign * parseInt(value, 10);
|
147
|
-
}
|
148
|
-
|
149
|
-
function isInteger(object) {
|
150
|
-
return (Object.prototype.toString.call(object)) === '[object Number]' &&
|
151
|
-
(object % 1 === 0 && !common.isNegativeZero(object));
|
152
|
-
}
|
153
|
-
|
154
|
-
module.exports = new Type('tag:yaml.org,2002:int', {
|
155
|
-
kind: 'scalar',
|
156
|
-
resolve: resolveYamlInteger,
|
157
|
-
construct: constructYamlInteger,
|
158
|
-
predicate: isInteger,
|
159
|
-
represent: {
|
160
|
-
binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },
|
161
|
-
octal: function (obj) { return obj >= 0 ? '0' + obj.toString(8) : '-0' + obj.toString(8).slice(1); },
|
162
|
-
decimal: function (obj) { return obj.toString(10); },
|
163
|
-
/* eslint-disable max-len */
|
164
|
-
hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }
|
165
|
-
},
|
166
|
-
defaultStyle: 'decimal',
|
167
|
-
styleAliases: {
|
168
|
-
binary: [ 2, 'bin' ],
|
169
|
-
octal: [ 8, 'oct' ],
|
170
|
-
decimal: [ 10, 'dec' ],
|
171
|
-
hexadecimal: [ 16, 'hex' ]
|
172
|
-
}
|
173
|
-
});
|
@@ -1,93 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var esprima;
|
4
|
-
|
5
|
-
// Browserified version does not have esprima
|
6
|
-
//
|
7
|
-
// 1. For node.js just require module as deps
|
8
|
-
// 2. For browser try to require mudule via external AMD system.
|
9
|
-
// If not found - try to fallback to window.esprima. If not
|
10
|
-
// found too - then fail to parse.
|
11
|
-
//
|
12
|
-
try {
|
13
|
-
// workaround to exclude package from browserify list.
|
14
|
-
var _require = require;
|
15
|
-
esprima = _require('esprima');
|
16
|
-
} catch (_) {
|
17
|
-
/* eslint-disable no-redeclare */
|
18
|
-
/* global window */
|
19
|
-
if (typeof window !== 'undefined') esprima = window.esprima;
|
20
|
-
}
|
21
|
-
|
22
|
-
var Type = require('../../type');
|
23
|
-
|
24
|
-
function resolveJavascriptFunction(data) {
|
25
|
-
if (data === null) return false;
|
26
|
-
|
27
|
-
try {
|
28
|
-
var source = '(' + data + ')',
|
29
|
-
ast = esprima.parse(source, { range: true });
|
30
|
-
|
31
|
-
if (ast.type !== 'Program' ||
|
32
|
-
ast.body.length !== 1 ||
|
33
|
-
ast.body[0].type !== 'ExpressionStatement' ||
|
34
|
-
(ast.body[0].expression.type !== 'ArrowFunctionExpression' &&
|
35
|
-
ast.body[0].expression.type !== 'FunctionExpression')) {
|
36
|
-
return false;
|
37
|
-
}
|
38
|
-
|
39
|
-
return true;
|
40
|
-
} catch (err) {
|
41
|
-
return false;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
|
45
|
-
function constructJavascriptFunction(data) {
|
46
|
-
/*jslint evil:true*/
|
47
|
-
|
48
|
-
var source = '(' + data + ')',
|
49
|
-
ast = esprima.parse(source, { range: true }),
|
50
|
-
params = [],
|
51
|
-
body;
|
52
|
-
|
53
|
-
if (ast.type !== 'Program' ||
|
54
|
-
ast.body.length !== 1 ||
|
55
|
-
ast.body[0].type !== 'ExpressionStatement' ||
|
56
|
-
(ast.body[0].expression.type !== 'ArrowFunctionExpression' &&
|
57
|
-
ast.body[0].expression.type !== 'FunctionExpression')) {
|
58
|
-
throw new Error('Failed to resolve function');
|
59
|
-
}
|
60
|
-
|
61
|
-
ast.body[0].expression.params.forEach(function (param) {
|
62
|
-
params.push(param.name);
|
63
|
-
});
|
64
|
-
|
65
|
-
body = ast.body[0].expression.body.range;
|
66
|
-
|
67
|
-
// Esprima's ranges include the first '{' and the last '}' characters on
|
68
|
-
// function expressions. So cut them out.
|
69
|
-
if (ast.body[0].expression.body.type === 'BlockStatement') {
|
70
|
-
/*eslint-disable no-new-func*/
|
71
|
-
return new Function(params, source.slice(body[0] + 1, body[1] - 1));
|
72
|
-
}
|
73
|
-
// ES6 arrow functions can omit the BlockStatement. In that case, just return
|
74
|
-
// the body.
|
75
|
-
/*eslint-disable no-new-func*/
|
76
|
-
return new Function(params, 'return ' + source.slice(body[0], body[1]));
|
77
|
-
}
|
78
|
-
|
79
|
-
function representJavascriptFunction(object /*, style*/) {
|
80
|
-
return object.toString();
|
81
|
-
}
|
82
|
-
|
83
|
-
function isFunction(object) {
|
84
|
-
return Object.prototype.toString.call(object) === '[object Function]';
|
85
|
-
}
|
86
|
-
|
87
|
-
module.exports = new Type('tag:yaml.org,2002:js/function', {
|
88
|
-
kind: 'scalar',
|
89
|
-
resolve: resolveJavascriptFunction,
|
90
|
-
construct: constructJavascriptFunction,
|
91
|
-
predicate: isFunction,
|
92
|
-
represent: representJavascriptFunction
|
93
|
-
});
|
@@ -1,60 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var Type = require('../../type');
|
4
|
-
|
5
|
-
function resolveJavascriptRegExp(data) {
|
6
|
-
if (data === null) return false;
|
7
|
-
if (data.length === 0) return false;
|
8
|
-
|
9
|
-
var regexp = data,
|
10
|
-
tail = /\/([gim]*)$/.exec(data),
|
11
|
-
modifiers = '';
|
12
|
-
|
13
|
-
// if regexp starts with '/' it can have modifiers and must be properly closed
|
14
|
-
// `/foo/gim` - modifiers tail can be maximum 3 chars
|
15
|
-
if (regexp[0] === '/') {
|
16
|
-
if (tail) modifiers = tail[1];
|
17
|
-
|
18
|
-
if (modifiers.length > 3) return false;
|
19
|
-
// if expression starts with /, is should be properly terminated
|
20
|
-
if (regexp[regexp.length - modifiers.length - 1] !== '/') return false;
|
21
|
-
}
|
22
|
-
|
23
|
-
return true;
|
24
|
-
}
|
25
|
-
|
26
|
-
function constructJavascriptRegExp(data) {
|
27
|
-
var regexp = data,
|
28
|
-
tail = /\/([gim]*)$/.exec(data),
|
29
|
-
modifiers = '';
|
30
|
-
|
31
|
-
// `/foo/gim` - tail can be maximum 4 chars
|
32
|
-
if (regexp[0] === '/') {
|
33
|
-
if (tail) modifiers = tail[1];
|
34
|
-
regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
|
35
|
-
}
|
36
|
-
|
37
|
-
return new RegExp(regexp, modifiers);
|
38
|
-
}
|
39
|
-
|
40
|
-
function representJavascriptRegExp(object /*, style*/) {
|
41
|
-
var result = '/' + object.source + '/';
|
42
|
-
|
43
|
-
if (object.global) result += 'g';
|
44
|
-
if (object.multiline) result += 'm';
|
45
|
-
if (object.ignoreCase) result += 'i';
|
46
|
-
|
47
|
-
return result;
|
48
|
-
}
|
49
|
-
|
50
|
-
function isRegExp(object) {
|
51
|
-
return Object.prototype.toString.call(object) === '[object RegExp]';
|
52
|
-
}
|
53
|
-
|
54
|
-
module.exports = new Type('tag:yaml.org,2002:js/regexp', {
|
55
|
-
kind: 'scalar',
|
56
|
-
resolve: resolveJavascriptRegExp,
|
57
|
-
construct: constructJavascriptRegExp,
|
58
|
-
predicate: isRegExp,
|
59
|
-
represent: representJavascriptRegExp
|
60
|
-
});
|
@@ -1,28 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var Type = require('../../type');
|
4
|
-
|
5
|
-
function resolveJavascriptUndefined() {
|
6
|
-
return true;
|
7
|
-
}
|
8
|
-
|
9
|
-
function constructJavascriptUndefined() {
|
10
|
-
/*eslint-disable no-undefined*/
|
11
|
-
return undefined;
|
12
|
-
}
|
13
|
-
|
14
|
-
function representJavascriptUndefined() {
|
15
|
-
return '';
|
16
|
-
}
|
17
|
-
|
18
|
-
function isUndefined(object) {
|
19
|
-
return typeof object === 'undefined';
|
20
|
-
}
|
21
|
-
|
22
|
-
module.exports = new Type('tag:yaml.org,2002:js/undefined', {
|
23
|
-
kind: 'scalar',
|
24
|
-
resolve: resolveJavascriptUndefined,
|
25
|
-
construct: constructJavascriptUndefined,
|
26
|
-
predicate: isUndefined,
|
27
|
-
represent: representJavascriptUndefined
|
28
|
-
});
|
@@ -1,34 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var Type = require('../type');
|
4
|
-
|
5
|
-
function resolveYamlNull(data) {
|
6
|
-
if (data === null) return true;
|
7
|
-
|
8
|
-
var max = data.length;
|
9
|
-
|
10
|
-
return (max === 1 && data === '~') ||
|
11
|
-
(max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
|
12
|
-
}
|
13
|
-
|
14
|
-
function constructYamlNull() {
|
15
|
-
return null;
|
16
|
-
}
|
17
|
-
|
18
|
-
function isNull(object) {
|
19
|
-
return object === null;
|
20
|
-
}
|
21
|
-
|
22
|
-
module.exports = new Type('tag:yaml.org,2002:null', {
|
23
|
-
kind: 'scalar',
|
24
|
-
resolve: resolveYamlNull,
|
25
|
-
construct: constructYamlNull,
|
26
|
-
predicate: isNull,
|
27
|
-
represent: {
|
28
|
-
canonical: function () { return '~'; },
|
29
|
-
lowercase: function () { return 'null'; },
|
30
|
-
uppercase: function () { return 'NULL'; },
|
31
|
-
camelcase: function () { return 'Null'; }
|
32
|
-
},
|
33
|
-
defaultStyle: 'lowercase'
|
34
|
-
});
|
@@ -1,44 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var Type = require('../type');
|
4
|
-
|
5
|
-
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
6
|
-
var _toString = Object.prototype.toString;
|
7
|
-
|
8
|
-
function resolveYamlOmap(data) {
|
9
|
-
if (data === null) return true;
|
10
|
-
|
11
|
-
var objectKeys = [], index, length, pair, pairKey, pairHasKey,
|
12
|
-
object = data;
|
13
|
-
|
14
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
15
|
-
pair = object[index];
|
16
|
-
pairHasKey = false;
|
17
|
-
|
18
|
-
if (_toString.call(pair) !== '[object Object]') return false;
|
19
|
-
|
20
|
-
for (pairKey in pair) {
|
21
|
-
if (_hasOwnProperty.call(pair, pairKey)) {
|
22
|
-
if (!pairHasKey) pairHasKey = true;
|
23
|
-
else return false;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
if (!pairHasKey) return false;
|
28
|
-
|
29
|
-
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
30
|
-
else return false;
|
31
|
-
}
|
32
|
-
|
33
|
-
return true;
|
34
|
-
}
|
35
|
-
|
36
|
-
function constructYamlOmap(data) {
|
37
|
-
return data !== null ? data : [];
|
38
|
-
}
|
39
|
-
|
40
|
-
module.exports = new Type('tag:yaml.org,2002:omap', {
|
41
|
-
kind: 'sequence',
|
42
|
-
resolve: resolveYamlOmap,
|
43
|
-
construct: constructYamlOmap
|
44
|
-
});
|
@@ -1,53 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var Type = require('../type');
|
4
|
-
|
5
|
-
var _toString = Object.prototype.toString;
|
6
|
-
|
7
|
-
function resolveYamlPairs(data) {
|
8
|
-
if (data === null) return true;
|
9
|
-
|
10
|
-
var index, length, pair, keys, result,
|
11
|
-
object = data;
|
12
|
-
|
13
|
-
result = new Array(object.length);
|
14
|
-
|
15
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
16
|
-
pair = object[index];
|
17
|
-
|
18
|
-
if (_toString.call(pair) !== '[object Object]') return false;
|
19
|
-
|
20
|
-
keys = Object.keys(pair);
|
21
|
-
|
22
|
-
if (keys.length !== 1) return false;
|
23
|
-
|
24
|
-
result[index] = [ keys[0], pair[keys[0]] ];
|
25
|
-
}
|
26
|
-
|
27
|
-
return true;
|
28
|
-
}
|
29
|
-
|
30
|
-
function constructYamlPairs(data) {
|
31
|
-
if (data === null) return [];
|
32
|
-
|
33
|
-
var index, length, pair, keys, result,
|
34
|
-
object = data;
|
35
|
-
|
36
|
-
result = new Array(object.length);
|
37
|
-
|
38
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
39
|
-
pair = object[index];
|
40
|
-
|
41
|
-
keys = Object.keys(pair);
|
42
|
-
|
43
|
-
result[index] = [ keys[0], pair[keys[0]] ];
|
44
|
-
}
|
45
|
-
|
46
|
-
return result;
|
47
|
-
}
|
48
|
-
|
49
|
-
module.exports = new Type('tag:yaml.org,2002:pairs', {
|
50
|
-
kind: 'sequence',
|
51
|
-
resolve: resolveYamlPairs,
|
52
|
-
construct: constructYamlPairs
|
53
|
-
});
|
@@ -1,29 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var Type = require('../type');
|
4
|
-
|
5
|
-
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
6
|
-
|
7
|
-
function resolveYamlSet(data) {
|
8
|
-
if (data === null) return true;
|
9
|
-
|
10
|
-
var key, object = data;
|
11
|
-
|
12
|
-
for (key in object) {
|
13
|
-
if (_hasOwnProperty.call(object, key)) {
|
14
|
-
if (object[key] !== null) return false;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
return true;
|
19
|
-
}
|
20
|
-
|
21
|
-
function constructYamlSet(data) {
|
22
|
-
return data !== null ? data : {};
|
23
|
-
}
|
24
|
-
|
25
|
-
module.exports = new Type('tag:yaml.org,2002:set', {
|
26
|
-
kind: 'mapping',
|
27
|
-
resolve: resolveYamlSet,
|
28
|
-
construct: constructYamlSet
|
29
|
-
});
|
@@ -1,88 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var Type = require('../type');
|
4
|
-
|
5
|
-
var YAML_DATE_REGEXP = new RegExp(
|
6
|
-
'^([0-9][0-9][0-9][0-9])' + // [1] year
|
7
|
-
'-([0-9][0-9])' + // [2] month
|
8
|
-
'-([0-9][0-9])$'); // [3] day
|
9
|
-
|
10
|
-
var YAML_TIMESTAMP_REGEXP = new RegExp(
|
11
|
-
'^([0-9][0-9][0-9][0-9])' + // [1] year
|
12
|
-
'-([0-9][0-9]?)' + // [2] month
|
13
|
-
'-([0-9][0-9]?)' + // [3] day
|
14
|
-
'(?:[Tt]|[ \\t]+)' + // ...
|
15
|
-
'([0-9][0-9]?)' + // [4] hour
|
16
|
-
':([0-9][0-9])' + // [5] minute
|
17
|
-
':([0-9][0-9])' + // [6] second
|
18
|
-
'(?:\\.([0-9]*))?' + // [7] fraction
|
19
|
-
'(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
|
20
|
-
'(?::([0-9][0-9]))?))?$'); // [11] tz_minute
|
21
|
-
|
22
|
-
function resolveYamlTimestamp(data) {
|
23
|
-
if (data === null) return false;
|
24
|
-
if (YAML_DATE_REGEXP.exec(data) !== null) return true;
|
25
|
-
if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
|
26
|
-
return false;
|
27
|
-
}
|
28
|
-
|
29
|
-
function constructYamlTimestamp(data) {
|
30
|
-
var match, year, month, day, hour, minute, second, fraction = 0,
|
31
|
-
delta = null, tz_hour, tz_minute, date;
|
32
|
-
|
33
|
-
match = YAML_DATE_REGEXP.exec(data);
|
34
|
-
if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
|
35
|
-
|
36
|
-
if (match === null) throw new Error('Date resolve error');
|
37
|
-
|
38
|
-
// match: [1] year [2] month [3] day
|
39
|
-
|
40
|
-
year = +(match[1]);
|
41
|
-
month = +(match[2]) - 1; // JS month starts with 0
|
42
|
-
day = +(match[3]);
|
43
|
-
|
44
|
-
if (!match[4]) { // no hour
|
45
|
-
return new Date(Date.UTC(year, month, day));
|
46
|
-
}
|
47
|
-
|
48
|
-
// match: [4] hour [5] minute [6] second [7] fraction
|
49
|
-
|
50
|
-
hour = +(match[4]);
|
51
|
-
minute = +(match[5]);
|
52
|
-
second = +(match[6]);
|
53
|
-
|
54
|
-
if (match[7]) {
|
55
|
-
fraction = match[7].slice(0, 3);
|
56
|
-
while (fraction.length < 3) { // milli-seconds
|
57
|
-
fraction += '0';
|
58
|
-
}
|
59
|
-
fraction = +fraction;
|
60
|
-
}
|
61
|
-
|
62
|
-
// match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
|
63
|
-
|
64
|
-
if (match[9]) {
|
65
|
-
tz_hour = +(match[10]);
|
66
|
-
tz_minute = +(match[11] || 0);
|
67
|
-
delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
|
68
|
-
if (match[9] === '-') delta = -delta;
|
69
|
-
}
|
70
|
-
|
71
|
-
date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
72
|
-
|
73
|
-
if (delta) date.setTime(date.getTime() - delta);
|
74
|
-
|
75
|
-
return date;
|
76
|
-
}
|
77
|
-
|
78
|
-
function representYamlTimestamp(object /*, style*/) {
|
79
|
-
return object.toISOString();
|
80
|
-
}
|
81
|
-
|
82
|
-
module.exports = new Type('tag:yaml.org,2002:timestamp', {
|
83
|
-
kind: 'scalar',
|
84
|
-
resolve: resolveYamlTimestamp,
|
85
|
-
construct: constructYamlTimestamp,
|
86
|
-
instanceOf: Date,
|
87
|
-
represent: representYamlTimestamp
|
88
|
-
});
|