SamplingProfiler::stackTracesAsJSON() should escape strings.
[WebKit-https.git] / JSTests / stress / type-profiler-with-double-quote-in-field-name.js
1 //@ runDefault("--useTypeProfiler=true")
2
3 var findTypeForExpression = $vm.findTypeForExpression;
4
5 function wrapper(x) {
6     class Base {
7         constructor() {
8             this['"'] = true;
9         }
10     };
11
12     var baseInstance = new Base;
13 }
14 wrapper();
15
16 var types = findTypeForExpression(wrapper, "baseInstance = new Base");
17 JSON.stringify(types)