Skip to content

Instantly share code, notes, and snippets.

@gsathya
Created June 17, 2019 13:55
Show Gist options
  • Save gsathya/d79900dc36207c8e73c0496438820f11 to your computer and use it in GitHub Desktop.
Save gsathya/d79900dc36207c8e73c0496438820f11 to your computer and use it in GitHub Desktop.
➜ v8 git:(69191fe7d6) eshost -t _test.js
┌────────────────┬───────────┐
│ chakra │ 4 │
├────────────────┼───────────┤
│ javascriptcore │ 4 │
├────────────────┼───────────┤
│ spidermonkey │ 4 │
├────────────────┼───────────┤
│ v8 │ undefined │
├────────────────┼───────────┤
│ xs │ undefined │
└────────────────┴───────────┘
Object.setPrototypeOf(Array.prototype, new Uint8Array());
var x = new Array(10);
x[0] = 4;
print(x[0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment