mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
46 lines
1.3 KiB
JavaScript
46 lines
1.3 KiB
JavaScript
/*
|
|
* Copyright (c) 2020-present Samsung Electronics Co., Ltd
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
|
* USA
|
|
*/
|
|
|
|
{
|
|
let a = 6
|
|
{
|
|
const c = 8
|
|
const d = 9
|
|
}
|
|
let b = 7
|
|
}
|
|
|
|
function f(a) {
|
|
var b = 2
|
|
let c
|
|
return
|
|
}
|
|
|
|
f(1)
|
|
|
|
with({ p1:1, p2:2 }) {
|
|
p1 = 3;
|
|
}
|
|
|
|
{
|
|
// Too long identifier and string
|
|
let a12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 = 1,
|
|
b = "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";
|
|
b = 1
|
|
}
|