Skip to content

Instantly share code, notes, and snippets.

@dckc
Created April 5, 2021 17:36
Show Gist options
  • Save dckc/75663ff47b714f4dbf10ecf6dd1f602c to your computer and use it in GitHub Desktop.
Save dckc/75663ff47b714f4dbf10ecf6dd1f602c to your computer and use it in GitHub Desktop.
yarn run v1.22.0
$ ava-xs
# SKIP test excluded on XS test/error/test-assert-log.js
# SKIP test excluded on XS test/error/test-assert.js
# SKIP test excluded on XS test/error/test-filtering-console.js
# SKIP test excluded on XS test/error/test-tame-console-unfilteredError.js
# SKIP test excluded on XS test/error/test-tame-console-unsafe-unfilteredError.js
# SKIP test excluded on XS test/error/test-tame-console-unsafe-unsafeError-unfilteredError.js
# SKIP test excluded on XS test/error/test-tame-console-unsafe-unsafeError.js
# SKIP test excluded on XS test/error/test-tame-console-unsafe.js
# SKIP test excluded on XS test/error/test-tame-console-unsafeError.js
# SKIP test excluded on XS test/error/test-tame-console.js
# SKIP test excluded on XS test/error/test-tame-v8-error-unit.js
# SKIP test excluded on XS test/error/test-tame-v8-error-unsafe.js
# SKIP test excluded on XS test/error/test-tame-v8-error.js
# SKIP test excluded on XS test/error/test-v8-concise-stack-filtering-unit-tests.js
. test/test-break-function-eval.js function-no-body
{
status: 'not ok',
id: 4,
message: 'should throw like [object Object]',
filename: 'test/test-break-function-eval.js',
label: 'function-injection'
}
{
status: 'not ok',
id: 5,
message: 'should be identical',
filename: 'test/test-break-function-eval.js',
label: 'function-injection'
}
F test/test-break-function-eval.js function-injection
bad plan: 2 still to go
{
status: 'not ok',
id: 6,
message: '}), target(), (function(){: {"actual":{}}',
filename: 'test/test-break-function-eval.js',
label: 'function-injection-2'
}
{
status: 'not ok',
id: 10,
message: '/*',
filename: 'test/test-break-function-eval.js',
label: 'function-injection-2'
}
{
status: 'not ok',
id: 12,
message: '',
filename: 'test/test-break-function-eval.js',
label: 'function-injection-2'
}
1+1=2
{
status: 'not ok',
id: 14,
message: ': {"actual":{}}',
filename: 'test/test-break-function-eval.js',
label: 'function-injection-2'
}
{
status: 'not ok',
id: 16,
message: '){});(function(',
filename: 'test/test-break-function-eval.js',
label: 'function-injection-2'
}
{
status: 'not ok',
id: 18,
message: '',
filename: 'test/test-break-function-eval.js',
label: 'function-injection-2'
}
{
status: 'not ok',
id: 20,
message: '/*',
filename: 'test/test-break-function-eval.js',
label: 'function-injection-2'
}
{
status: 'not ok',
id: 24,
message: 'arg=`',
filename: 'test/test-break-function-eval.js',
label: 'function-injection-2'
}
F test/test-break-function-eval.js function-injection-2
bad plan: 8 still to go
. test/test-break-function-eval.js function-paren-default
. test/test-break-function-eval.js function-default-parameters
. test/test-break-function-eval.js function-rest-parameter
. test/test-break-function-eval.js function-destructuring-parameters
. test/test-break-function-eval.js function-legitimate-but-weird-parameters
. test/test-break-function-eval.js degenerate-pattern-match-argument
. test/test-break-function-eval.js frozen-eval
. test/test-compartment-constructor.js Compartment class
. test/test-compartment-instance.js Compartment instance
. test/test-compartment-known-scope-proxy.js SES compartment recognizes its own scopeProxies
. test/test-compartment-known-scope-proxy.js SES compartment does not recognize other scopeProxies
. test/test-compartment-known-scope-proxy.js scope proxy leak workaround usecase
. test/test-compartment-prototype.js Compartment prototype
# SKIP test excluded on XS test/test-compartment-transforms.js
. test/test-compartment.js create
. test/test-compartment.js SES compartment does not see primal realm names
. test/test-compartment.js SES compartment also has compartments
. test/test-compartment.js SES compartment has harden
. test/test-compartment.js main use case
. test/test-confinement.js confinement evaluation strict mode
. test/test-confinement.js constructor this binding
. test/test-confinement.js confinement evaluation constructor
. test/test-confinement.js confinement evaluation eval
{
status: 'not ok',
id: 1,
filename: 'test/test-enable-default-overrides-default.js',
label: 'enable default overrides of Uint8Array'
}
F test/test-enable-default-overrides-default.js enable default overrides of Uint8Array
{
status: 'not ok',
id: 2,
filename: 'test/test-enable-default-overrides-default.js',
label: 'enable default overrides of Uint8Array in evaluation'
}
F test/test-enable-default-overrides-default.js enable default overrides of Uint8Array in evaluation
{
status: 'not ok',
id: 21,
message: 'Should not throw when setting property valueOf of Object instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 22,
message: 'Should allow setting property valueOf of Object instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 63,
message: 'Should not throw when setting property push of Array instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 64,
message: 'Should allow setting property push of Array instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 83,
message: 'Should not throw when setting property toString of Array instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 84,
message: 'Should allow setting property toString of Array instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 97,
message: 'Should not throw when setting property bind of Function instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 98,
message: 'Should allow setting property bind of Function instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 103,
message: 'Should not throw when setting property constructor of Function instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 104,
message: 'Should allow setting property constructor of Function instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 105,
message: 'Should not throw when setting property toString of Error instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 106,
message: 'Should allow setting property toString of Error instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 109,
message: 'Should not throw when setting property message of Error instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 110,
message: 'Should allow setting property message of Error instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 111,
message: 'Should not throw when setting property constructor of Error instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 112,
message: 'Should allow setting property constructor of Error instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 113,
message: 'Should not throw when setting property name of TypeError instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 114,
message: 'Should allow setting property name of TypeError instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 115,
message: 'Should not throw when setting property message of TypeError instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 116,
message: 'Should allow setting property message of TypeError instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 117,
message: 'Should not throw when setting property constructor of TypeError instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 118,
message: 'Should allow setting property constructor of TypeError instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 125,
message: 'Should not throw when setting property constructor of Promise instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
{
status: 'not ok',
id: 126,
message: 'Should allow setting property constructor of Promise instance',
filename: 'test/test-enable-property-overrides-default.js',
label: 'enablePropertyOverrides - on'
}
F test/test-enable-property-overrides-default.js enablePropertyOverrides - on
. test/test-enable-property-overrides-min.js enablePropertyOverrides - on
# SKIP test excluded on XS test/test-enable-property-overrides-severe.js
# SKIP test excluded on XS test/test-evade-html-comment.js
# SKIP test excluded on XS test/test-evade-import-expression.js
# SKIP test excluded on XS test/test-evaluate.js
. test/test-frozen-primordials.js check if override-protected primordials are frozen
. test/test-get-source-url.js getSourceURL
. test/test-global-lexicals-evaluate.js endowments own properties are mentionable
. test/test-global-lexicals-evaluate.js endowments own properties are enumerable
{
status: 'not ok',
id: 3,
message: 'should throw like [object Object]: {"actual":"get hello: undefined variable","expected":{}}',
filename: 'test/test-global-lexicals-evaluate.js',
label: 'endowments prototypically inherited properties are not mentionable'
}
F test/test-global-lexicals-evaluate.js endowments prototypically inherited properties are not mentionable
bad plan: 1 still to go
. test/test-global-lexicals-evaluate.js endowments prototypically inherited properties are not enumerable
. test/test-global-lexicals-evaluate.js global lexicals are mentionable
. test/test-global-lexicals-evaluate.js global lexicals are not enumerable from global object
. test/test-global-lexicals-evaluate.js global lexicals are not reachable from global object
{
status: 'not ok',
id: 8,
message: 'should throw like [object Object]: {"actual":"get hello: undefined variable","expected":{}}',
filename: 'test/test-global-lexicals-evaluate.js',
label: 'global lexicals prototypically inherited properties are not mentionable'
}
F test/test-global-lexicals-evaluate.js global lexicals prototypically inherited properties are not mentionable
bad plan: 1 still to go
. test/test-global-lexicals-evaluate.js global lexicals prototypically inherited properties are not reachable from global object
. test/test-global-lexicals-evaluate.js global lexicals prototypically inherited properties are not enumerable
. test/test-global-lexicals-evaluate.js global lexicals overshadow global object
{
status: 'not ok',
id: 12,
message: 'should throw like [object Object]: {"actual":"set hello: const","expected":{}}',
filename: 'test/test-global-lexicals-evaluate.js',
label: 'global lexicals are constant'
}
F test/test-global-lexicals-evaluate.js global lexicals are constant
bad plan: 1 still to go
. test/test-global-lexicals-evaluate.js global lexicals are captured on construction
. test/test-global-lexicals-evaluate.js global lexical accessors are sampled once up front
. test/test-global-lexicals-evaluate.js global lexical accessors receive globalThis
# SKIP test excluded on XS test/test-global-lexicals-modules.js
# SKIP test excluded on XS test/test-global-object-mutability.js
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
. test/test-global-object-properties.js globalObject properties
# SKIP test excluded on XS test/test-global-object.js
. test/test-harden.js Compartment global is not frozen
. test/test-harden.js Compartment named intrinsics are frozen
. test/test-harden.js Compartment anonymous intrinsics are frozen
. test/test-identity-continuity.js identity Array
. test/test-identity-continuity.js identity Compartment
. test/test-identity-continuity.js identity eval
. test/test-identity-continuity.js identity Function
# SKIP test excluded on XS test/test-import-cjs.js
# SKIP test excluded on XS test/test-import-gauntlet.js
# SKIP test excluded on XS test/test-import-stack-traces.js
# SKIP test excluded on XS test/test-import.js
FAIL (todo route console) (Error#1)
Error#1: lockdown(): cannot re-invoke with different option dateTaming
{
status: 'not ok',
id: 1,
message: 'lockdown returns boolean or throws in downgraded SES threw: lockdown(): cannot re-invoke with different option "dateTaming"',
filename: 'test/test-lockdown-allow.js',
label: 'lockdown returns boolean or throws in downgraded SES'
}
F test/test-lockdown-allow.js lockdown returns boolean or throws in downgraded SES
bad plan: 6 still to go
# SKIP test excluded on XS test/test-lockdown-options.js
# SKIP test excluded on XS test/test-lockdown.js
# SKIP test excluded on XS test/test-make-eval-function.js
# SKIP test excluded on XS test/test-make-evaluate-factory.js
# SKIP test excluded on XS test/test-make-function-constructor.js
# SKIP test excluded on XS test/test-module-compartment-instance.js
# SKIP test excluded on XS test/test-module-compartment-prototype.js
. test/test-module-proxy.js proxied exports keys are readable
. test/test-module-proxy.js proxied exports is not extensible
. test/test-module-proxy.js proxied exports has own keys
. test/test-module-proxy.js proxied exports set/get round-trip
. test/test-module-proxy.js proxied exports delete
. test/test-module-proxy.js proxied exports prototype
. test/test-module-proxy.js proxied exports is not a function
{
status: 'not ok',
id: 14,
message: 'proxied exports must not be constructable: {"actual":"no constructor","expected":{}}',
filename: 'test/test-module-proxy.js',
label: 'proxied exports is not a constructor'
}
F test/test-module-proxy.js proxied exports is not a constructor
bad plan: 1 still to go
FAIL (todo route console) (ReferenceError#1)
ReferenceError#1: get StaticModuleRecord: undefined variable
{
status: 'not ok',
id: 1,
message: 'static module record constructor threw: get StaticModuleRecord: undefined variable',
filename: 'test/test-module-static-record.js',
label: 'static module record constructor'
}
F test/test-module-static-record.js static module record constructor
. test/test-nesting.js nested realms should work at all
# SKIP test excluded on XS test/test-node.js
# SKIP test excluded on XS test/test-package.js
# SKIP test excluded on XS test/test-property-override.js
# SKIP test excluded on XS test/test-reject-direct-eval.js
# SKIP test excluded on XS test/test-reject-html-comment.js
# SKIP test excluded on XS test/test-reject-import-expression.js
. test/test-scope-constants.js getScopeConstants - global object
. test/test-scope-constants.js getScopeConstants - local object (endownments)
. test/test-scope-constants.js getScopeConstants - global and local object
# SKIP test excluded on XS test/test-scope-handler.js
. test/test-ses.js tamed constructors
. test/test-ses.js frozen
. test/test-ses.js create
. test/test-ses.js SES compartment does not see primal realm names
. test/test-ses.js SES compartment also has compartments
. test/test-ses.js SES compartment has harden
. test/test-ses.js main use case
# SKIP test excluded on XS test/test-static-module-record-unit.js
# SKIP test excluded on XS test/test-suppress-direct-eval.js
# SKIP test excluded on XS test/test-tame-date-unit.js
{
status: 'not ok',
id: 1,
message: 'should be truthy',
filename: 'test/test-tame-date.js',
label: 'lockdown start Date is powerful'
}
{
status: 'not ok',
id: 2,
message: 'should be truthy',
filename: 'test/test-tame-date.js',
label: 'lockdown start Date is powerful'
}
F test/test-tame-date.js lockdown start Date is powerful
{
status: 'not ok',
id: 3,
message: 'should not be identical',
filename: 'test/test-tame-date.js',
label: 'lockdown Date.prototype.constructor is powerless'
}
F test/test-tame-date.js lockdown Date.prototype.constructor is powerless
. test/test-tame-date.js lockdown Date in Compartment is powerless
. test/test-tame-date.js lockdown Date in nested Compartment is powerless
. test/test-tame-function-unit.js Function.prototype.constructor
. test/test-tame-function-unit.js AsyncFunction.constructor
. test/test-tame-function-unit.js GeneratorFunction.constructor
. test/test-tame-function-unit.js AsyncGeneratorFunction.constructor
# SKIP test excluded on XS test/test-tame-locale-methods-unsafe.js
. test/test-tame-locale-methods.js tame locale methods
FAIL (todo route console) (TypeError#1)
TypeError#1: cannot coerce undefined to object
{
status: 'not ok',
id: 1,
message: 'tameMathObject - initial properties threw: cannot coerce undefined to object',
filename: 'test/test-tame-math-unit.js',
label: 'tameMathObject - initial properties'
}
F test/test-tame-math-unit.js tameMathObject - initial properties
. test/test-tame-math-unit.js tameMathObject - shared properties
{
status: 'not ok',
id: 1,
message: 'should be identical',
filename: 'test/test-tame-math.js',
label: 'lockdown start Math is powerful'
}
FAIL (todo route console) (TypeError#1)
TypeError#1: no function
{
status: 'not ok',
id: 2,
message: 'lockdown start Math is powerful threw: no function',
filename: 'test/test-tame-math.js',
label: 'lockdown start Math is powerful'
}
F test/test-tame-math.js lockdown start Math is powerful
. test/test-tame-math.js lockdown Math from Compartment is powerless
. test/test-tame-math.js lockdown Math from nested Compartment is powerless
# SKIP test excluded on XS test/test-tame-regexp-unit.js
. test/test-tame-rexexp.js lockdown RegExp from Compartment is powerless
. test/test-tame-rexexp.js lockdown RegExp from nested Compartment powerless
# SKIP test excluded on XS test/test-transforms.js
. test/test-typeof.js typeof
# SKIP test excluded on XS test/test-unsafe-kludge-for-react.js
FAIL (todo route console) (TypeError#1)
TypeError#1: set prepareStackTrace: not extensible
{
status: 'not ok',
id: 1,
message: 'callSite properties threw: set prepareStackTrace: not extensible',
filename: 'test/test-v8-callsite-properties.js',
label: 'callSite properties'
}
F test/test-v8-callsite-properties.js callSite properties
# SKIP test excluded on XS test/test-whitelist-intrinsics.js
. test/test-whitelist.js indirect eval is possible
. test/test-whitelist.js SharedArrayBuffer should be removed because it is not on the whitelist
. test/test-whitelist.js remove RegExp.prototype.compile
. test/test-whitelist.js remove RegExp.$1
. test/test-whitelist.js remove Intl
. test/test-whitelist.js do not remove Object.prototype.__proto__
83 tests passed
16 tests failed
F test/test-break-function-eval.js function-injection
F test/test-break-function-eval.js function-injection-2
F test/test-enable-default-overrides-default.js enable default overrides of Uint8Array
F test/test-enable-default-overrides-default.js enable default overrides of Uint8Array in evaluation
F test/test-enable-property-overrides-default.js enablePropertyOverrides - on
F test/test-global-lexicals-evaluate.js endowments prototypically inherited properties are not mentionable
F test/test-global-lexicals-evaluate.js global lexicals prototypically inherited properties are not mentionable
F test/test-global-lexicals-evaluate.js global lexicals are constant
F test/test-lockdown-allow.js lockdown returns boolean or throws in downgraded SES
F test/test-module-proxy.js proxied exports is not a constructor
F test/test-module-static-record.js static module record constructor
F test/test-tame-date.js lockdown start Date is powerful
F test/test-tame-date.js lockdown Date.prototype.constructor is powerless
F test/test-tame-math-unit.js tameMathObject - initial properties
F test/test-tame-math.js lockdown start Math is powerful
F test/test-v8-callsite-properties.js callSite properties
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment