summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/class/bug1357506.js
blob: 2e6f54ef3838104b3829cdaa32434ccdb85a0a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Test that constructors that abort due to asm.js do not assert due to the
// parser keeping track of the FunctionBox corresponding to the constructor.

class a {
  constructor() {
    "use asm";
  }
}

function f() {
  class a {
    constructor() {
      "use asm";
    }
  }
}