1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
4 function big_array_js_test (len) {
5 var big = new Array(len);
6 for (let i=0; i < len; i ++) {
9 console.log('break here');
12 function object_js_test () {
14 a_obj: { aa: 5, ab: 'foo' },
21 function getters_js_test () {
23 get Int () { return 5; },
24 get String () { return "foobar"; },
25 get DT () { return "dt"; },
26 get IntArray () { return [1,2,3]; },
27 get DTArray () { return ["dt0", "dt1"]; },
29 StringField: "string field value"
31 console.log (`break here`);
35 function exception_caught_test () {
37 throw new TypeError ('exception caught');
43 function exception_uncaught_test () {
44 console.log('uncaught test');
45 throw new RangeError ('exception uncaught');
48 function exceptions_test () {
49 exception_caught_test ();
50 exception_uncaught_test ();
53 function negative_cfo_test (str_value = null) {
55 get Int () { return 5; },
56 get String () { return "foobar"; },
57 get DT () { return "dt"; },
58 get IntArray () { return [1,2,3]; },
59 get DTArray () { return ["dt0", "dt1"]; },
61 StringField: str_value
63 console.log (`break here`);
67 function eval_call_on_frame_test () {
76 let obj_undefined = undefined;
77 console.log(`break here`);