Ignore:
Timestamp:
Dec 1, 2015, 12:11:20 PM (10 years ago)
Author:
[email protected]
Message:

[JSC] add missing RequireObjectCoercible() step in destructuring
https://bugs.webkit.org/show_bug.cgi?id=151596

Patch by Caitlin Potter <[email protected]> on 2015-12-01
Reviewed by Darin Adler.

  • bytecompiler/BytecodeGenerator.cpp:

(JSC::BytecodeGenerator::emitRequireObjectCoercible):

  • bytecompiler/BytecodeGenerator.h:
  • bytecompiler/NodesCodegen.cpp:

(JSC::ObjectPatternNode::bindValue):

  • tests/stress/destructuring-assignment-require-object-coercible.js: Added.

(testTypeError):
(testOK):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r192896 r192899  
     12015-12-01  Caitlin Potter  <[email protected]>
     2
     3        [JSC] add missing RequireObjectCoercible() step in destructuring
     4        https://bugs.webkit.org/show_bug.cgi?id=151596
     5
     6        Reviewed by Darin Adler.
     7
     8        * bytecompiler/BytecodeGenerator.cpp:
     9        (JSC::BytecodeGenerator::emitRequireObjectCoercible):
     10        * bytecompiler/BytecodeGenerator.h:
     11        * bytecompiler/NodesCodegen.cpp:
     12        (JSC::ObjectPatternNode::bindValue):
     13        * tests/stress/destructuring-assignment-require-object-coercible.js: Added.
     14        (testTypeError):
     15        (testOK):
     16
    1172015-12-01  Mark Lam  <[email protected]>
    218
Note: See TracChangeset for help on using the changeset viewer.