escargot/tools/debugger/tests/do_step2.js
Zoltan Herczeg 064d1d09b8 Fix debugger support for arrow functions and var/let/const statements.
Declarations with assignment should insert breakpoints, while
declarations without assignment should not.

Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2020-04-01 15:14:33 +09:00

41 lines
1,007 B
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
*/
var arr = (x) => x + x
arr();
var a;
var b,
c;
var d = 1;
var e = 2,
f = 3;
let g;
let h,
i;
let j = 4;
let k = 5,
l = 6;
const m = 7;
const n = 8,
o = 9;