Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2010-10-18 Oliver Hunt <oliver@apple.com>
Reviewed by Darin Adler. Strict mode: |this| should be undefined if it is not explicitly provided https://bugs.webkit.org/show_bug.cgi?id=47833 To make strict mode behave correctly we want to pass undefined instead of null as the default this value. This has no impact on behaviour outside of strict mode as both values are replaced with the global object if necessary. * bytecompiler/NodesCodegen.cpp: (JSC::FunctionCallValueNode::emitBytecode): (JSC::FunctionCallResolveNode::emitBytecode): (JSC::CallFunctionCallDotNode::emitBytecode): (JSC::ApplyFunctionCallDotNode::emitBytecode): 2010-10-18 Oliver Hunt <oliver@apple.com> Reviewed by Darin Adler. Strict mode: |this| should be undefined if it is not explicitly provided https://bugs.webkit.org/show_bug.cgi?id=47833 Add tests to ensure that |this| is undefined rather than null when it has not been explicitly provided. * fast/js/basic-strict-mode-expected.txt: * fast/js/script-tests/basic-strict-mode.js: Canonical link: https://commits.webkit.org/60543@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@69977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
5 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters