opencode/packages/codemode-rust/conformance/cases/lang-constructor-03.js
kommander 2c04a01ef6 test(codemode): adapt the reference's language tests as lang- cases
Programs from the reference's for-await, generator, promise, lexical,
labeled-control, constructor, new-expression and var-hoisting tests,
with expectations generated from the reference.
2026-11-18 18:56:10 +01:00

2 lines
80 B
JavaScript

const obj = new Object()
return [obj !== undefined, obj.constructor === Object]