Skip to content

Commit

Permalink
Disable ES6 Proxy object
Browse files Browse the repository at this point in the history
Change-Id: Ifd6404e254b242afa8dd563c03f9588b4b05ab93
  • Loading branch information
annulen committed Jul 13, 2017
1 parent 0caec8a commit 5648446
Show file tree
Hide file tree
Showing 91 changed files with 17 additions and 1,379 deletions.
3 changes: 3 additions & 0 deletions Source/JavaScriptCore/runtime/JSGlobalObject.cpp
Expand Up @@ -458,7 +458,10 @@ m_ ## lowerName ## Prototype->putDirectWithoutTransition(vm, vm.propertyNames->c
putDirectWithoutTransition(vm, vm.propertyNames->TypeError, m_typeErrorConstructor.get(), DontEnum);
putDirectWithoutTransition(vm, vm.propertyNames->URIError, m_URIErrorConstructor.get(), DontEnum);

#if !PLATFORM(QT)
// Disable ES6 Proxy because our implementation is not compliant with what real world code expects
putDirectWithoutTransition(vm, vm.propertyNames->Proxy, ProxyConstructor::create(vm, ProxyConstructor::createStructure(vm, this, m_functionPrototype.get())), DontEnum);
#endif


#define PUT_CONSTRUCTOR_FOR_SIMPLE_TYPE(capitalName, lowerName, properName, instanceType, jsName) \
Expand Down
164 changes: 0 additions & 164 deletions Source/JavaScriptCore/tests/es6.yaml
Expand Up @@ -906,170 +906,6 @@
cmd: runES6 :fail
- path: es6/prototype_of_bound_functions_subclasses.js
cmd: runES6 :fail
- path: es6/Proxy_apply_handler.js
cmd: runES6 :fail
- path: es6/Proxy_Array.isArray_support.js
cmd: runES6 :fail
- path: es6/Proxy_construct_handler.js
cmd: runES6 :fail
- path: es6/Proxy_constructor_requires_new.js
cmd: runES6 :normal
- path: es6/Proxy_defineProperty_handler.js
cmd: runES6 :fail
- path: es6/Proxy_deleteProperty_handler.js
cmd: runES6 :fail
- path: es6/Proxy_enumerate_handler.js
cmd: runES6 :fail
- path: es6/Proxy_get_handler.js
cmd: runES6 :normal
- path: es6/Proxy_get_handler_instances_of_proxies.js
cmd: runES6 :normal
- path: es6/Proxy_getOwnPropertyDescriptor_handler.js
cmd: runES6 :fail
- path: es6/Proxy_getPrototypeOf_handler.js
cmd: runES6 :fail
- path: es6/Proxy_has_handler.js
cmd: runES6 :normal
- path: es6/Proxy_has_handler_instances_of_proxies.js
cmd: runES6 :normal
- path: es6/Proxy_internal_defineProperty_calls_[[Set]].js
cmd: runES6 :fail
- path: es6/Proxy_internal_defineProperty_calls_SetIntegrityLevel.js
cmd: runES6 :fail
- path: es6/Proxy_internal_deleteProperty_calls_Array.prototype.copyWithin.js
cmd: runES6 :fail
- path: es6/Proxy_internal_deleteProperty_calls_Array.prototype.pop.js
cmd: runES6 :fail
- path: es6/Proxy_internal_deleteProperty_calls_Array.prototype.reverse.js
cmd: runES6 :fail
- path: es6/Proxy_internal_deleteProperty_calls_Array.prototype.shift.js
cmd: runES6 :fail
- path: es6/Proxy_internal_deleteProperty_calls_Array.prototype.splice.js
cmd: runES6 :fail
- path: es6/Proxy_internal_deleteProperty_calls_Array.prototype.unshift.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_Array.from.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_Array.prototype.concat.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_Array.prototype.pop.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_Array.prototype.reverse.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_Array.prototype.shift.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_Array.prototype.splice.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_Array.prototype.toString.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_Array.prototype_iteration_methods.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_ClassDefinitionEvaluation.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_CreateDynamicFunction.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_CreateListFromArrayLike.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_Date.prototype.toJSON.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_Error.prototype.toString.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_Function.prototype.bind.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_HasBinding.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_instanceof_operator.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_IteratorComplete_IteratorValue.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_JSON.stringify.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_Object.assign.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_Object.defineProperties.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_Promise_resolve_functions.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_RegExp.prototype.flags.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_RegExp.prototype.test.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_RegExp.prototype[Symbol.match].js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_RegExp.prototype[Symbol.replace].js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_RegExp.prototype[Symbol.search].js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_RegExp.prototype[Symbol.split].js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_RegExp_constructor.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_String.prototype.match.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_String.prototype.replace.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_String.prototype.search.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_String.prototype.split.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_String.raw.js
cmd: runES6 :normal
- path: es6/Proxy_internal_get_calls_ToPrimitive.js
cmd: runES6 :fail
- path: es6/Proxy_internal_get_calls_ToPropertyDescriptor.js
cmd: runES6 :fail
- path: es6/Proxy_internal_getOwnPropertyDescriptor_calls_[[Set]].js
cmd: runES6 :fail
- path: es6/Proxy_internal_getOwnPropertyDescriptor_calls_Function.prototype.bind.js
cmd: runES6 :fail
- path: es6/Proxy_internal_getOwnPropertyDescriptor_calls_Object.assign.js
cmd: runES6 :fail
- path: es6/Proxy_internal_getOwnPropertyDescriptor_calls_Object.prototype.hasOwnProperty.js
cmd: runES6 :normal
- path: es6/Proxy_internal_ownKeys_calls_SerializeJSONObject.js
cmd: runES6 :fail
- path: es6/Proxy_internal_ownKeys_calls_SetIntegrityLevel.js
cmd: runES6 :fail
- path: es6/Proxy_internal_ownKeys_calls_TestIntegrityLevel.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Array.from.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Array.of.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Array.prototype.copyWithin.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Array.prototype.fill.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Array.prototype.pop.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Array.prototype.push.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Array.prototype.reverse.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Array.prototype.shift.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Array.prototype.splice.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Array.prototype.unshift.js
cmd: runES6 :fail
- path: es6/Proxy_internal_set_calls_Object.assign.js
cmd: runES6 :fail
- path: es6/Proxy_isExtensible_handler.js
cmd: runES6 :fail
- path: es6/Proxy_JSON.stringify_support.js
cmd: runES6 :fail
- path: es6/Proxy_ownKeys_handler.js
cmd: runES6 :fail
- path: es6/Proxy_preventExtensions_handler.js
cmd: runES6 :fail
- path: es6/Proxy_Proxy.revocable.js
cmd: runES6 :fail
- path: es6/Proxy_set_handler.js
cmd: runES6 :fail
- path: es6/Proxy_set_handler_instances_of_proxies.js
cmd: runES6 :fail
- path: es6/Proxy_setPrototypeOf_handler.js
cmd: runES6 :fail
- path: es6/Reflect_Reflect.construct.js
cmd: runES6 :fail
- path: es6/Reflect_Reflect.construct_creates_instance_from_newTarget_argument.js
Expand Down

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions Source/JavaScriptCore/tests/es6/Proxy_Proxy.revocable.js

This file was deleted.

19 changes: 0 additions & 19 deletions Source/JavaScriptCore/tests/es6/Proxy_apply_handler.js

This file was deleted.

17 changes: 0 additions & 17 deletions Source/JavaScriptCore/tests/es6/Proxy_construct_handler.js

This file was deleted.

15 changes: 0 additions & 15 deletions Source/JavaScriptCore/tests/es6/Proxy_constructor_requires_new.js

This file was deleted.

21 changes: 0 additions & 21 deletions Source/JavaScriptCore/tests/es6/Proxy_defineProperty_handler.js

This file was deleted.

16 changes: 0 additions & 16 deletions Source/JavaScriptCore/tests/es6/Proxy_deleteProperty_handler.js

This file was deleted.

21 changes: 0 additions & 21 deletions Source/JavaScriptCore/tests/es6/Proxy_enumerate_handler.js

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions Source/JavaScriptCore/tests/es6/Proxy_getPrototypeOf_handler.js

This file was deleted.

15 changes: 0 additions & 15 deletions Source/JavaScriptCore/tests/es6/Proxy_get_handler.js

This file was deleted.

0 comments on commit 5648446

Please sign in to comment.