blob: b90a2a17b2df4a35e3b54bb3bbf7716162a2ed74 [file] [log] [blame]
{
// reified
const testGetterSetter = $vm.createCustomTestGetterSetter();
Reflect.set({}, 'customValue', 'foo', testGetterSetter);
testGetterSetter.customValue = 42;
}
{
// non-reified
let tester = $vm.createStaticCustomValue();
Reflect.set({}, "testStaticValueSetFlag", 'foo', tester);
if (!tester.testStaticValueSetterCalled)
throw new Error('Custom value overriden');
}