Changeset 184871 in webkit for trunk/Source/JavaScriptCore/builtins
- Timestamp:
- May 26, 2015, 2:17:22 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore/builtins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/builtins/Array.prototype.js
r184863 r184871 1 1 /* 2 2 * Copyright (C) 2014, 2015 Apple Inc. All rights reserved. 3 * Copyright (C) 2015 Yusuke Suzuki <[email protected]>. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 457 458 } 458 459 459 function copyWithin(target, start )460 function copyWithin(target, start /*, end */) 460 461 { 461 462 "use strict"; … … 471 472 } 472 473 473 var thisValue = this; 474 if (thisValue === null || thisValue === undefined) 475 throw new @TypeError("Array.copyWithin requires that |this| be not null or undefined"); 476 var thisObject = @Object(thisValue); 474 if (this === null || this === undefined) 475 throw new @TypeError("Array.copyWithin requires that |this| not be null or undefined"); 476 var thisObject = @Object(this); 477 477 478 478 var length = @ToLength(thisObject.length); -
trunk/Source/JavaScriptCore/builtins/StringIterator.prototype.js
r182118 r184871 28 28 29 29 if (this == null) 30 throw new @TypeError("%StringIteratorPrototype%.next requires that |this| be notnull or undefined");30 throw new @TypeError("%StringIteratorPrototype%.next requires that |this| not be null or undefined"); 31 31 32 32 var position = this.@stringIteratorNextIndex;
Note:
See TracChangeset
for help on using the changeset viewer.