Skip to content

Instantly share code, notes, and snippets.

@jevuu
Last active March 16, 2018 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jevuu/552694721103f4e39304fbd33e9f1287 to your computer and use it in GitHub Desktop.
Save jevuu/552694721103f4e39304fbd33e9f1287 to your computer and use it in GitHub Desktop.
//Original file name: S15.4.4.8_A1_T1.js
//Modified file name: empty_NumberConstant.js
/*-- ORIGINAL CODE BLOCK
//CHECK#1
var x = [];
var reverse = x.reverse();
if (reverse !== x) {
$ERROR('#1: x = []; x.reverse() === x. Actual: ' + (reverse));
}
--*/
//--- MODIFIED CODE BLOCK
var x = [];
var reverse = x.reverse();
array.compareArray(reverse, x, "Reversed empty array does not match empty array.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment