Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created May 13, 2013 20:29
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 bnoordhuis/4500154927db314a6db1 to your computer and use it in GitHub Desktop.
Save bnoordhuis/4500154927db314a6db1 to your computer and use it in GitHub Desktop.
$ cat tmp/dataview.js
var buffer = new ArrayBuffer(32);
var view = new DataView(buffer);
$ out/x64.debug/d8 --harmony_typed_arrays tmp/dataview.js
#
# Fatal error in ../src/builtins.cc, line 187
# unreachable code
#
==== JS stack trace =========================================
1: arguments adaptor frame: 1->0
Security context: 0x1cf26e67d389 <JS Object>#0#
3: /* anonymous */ [tmp/dataview.js:2] (this=0x1cf26e67d4a9 <JS Global Object>#1#)
==== Details ================================================
[1]: arguments adaptor frame: 1->0 {
// actual arguments
[00] : 0x26ffeef25a89 <an ArrayBuffer>#2# // not passed to callee
}
[3]: /* anonymous */ [tmp/dataview.js:2] (this=0x1cf26e67d4a9 <JS Global Object>#1#) {
// stack-allocated locals
var .result = 0x1cf26e604121 <undefined>
// expression stack (top to bottom)
[04] : 0x26ffeef25a89 <an ArrayBuffer>#2#
[03] : 0x1cf26e67fbc9 <JS Function DataView>#3#
[02] : 0
[01] : 0x230b1371cbc9 <String[4]: view>
--------- s o u r c e c o d e ---------
var buffer = new ArrayBuffer(32);?var view = new DataView(buffer);?
-----------------------------------------
}
==== Key ============================================
#0# 0x1cf26e67d389: 0x1cf26e67d389 <JS Object>
#1# 0x1cf26e67d4a9: 0x1cf26e67d4a9 <JS Global Object>
#2# 0x26ffeef25a89: 0x26ffeef25a89 <an ArrayBuffer>
#3# 0x1cf26e67fbc9: 0x1cf26e67fbc9 <JS Function DataView>
=====================
Abort trap: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment