Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
35 lines (26 loc) · 1.04 KB

File metadata and controls

35 lines (26 loc) · 1.04 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function Ctor()
{
this.a = 400;
}
function test()
{
// Test exercising variation of the mark tem objects
var simple = {};
simple.blah = 1;
var literal = { a: 3 };
var obj = new Ctor();
var arrintlit = [ 1, 2 ];
var arrfloatlit = [ 1.1 ];
// this is not stack allocated yet. Need to modified loewring for NewScArray and inline build in constructors
var typedarr = new Uint8Array(1);
typedarr[0] = 2;
var arr = [];
arr[0] = 1;
return simple.blah + literal.a + arr[0] + arr.length + typedarr[0] + typedarr.length + arrintlit[0] + obj.a + arrfloatlit[0];
}
WScript.Echo(test());
WScript.Echo(test());
Morty Proxy This is a proxified and sanitized view of the page, visit original site.