We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d55cf2 commit 31b14aeCopy full SHA for 31b14ae
Parser.js
@@ -277,12 +277,10 @@ export class Parser {
277
const properties = [];
278
for (;;) {
279
const t2 = this.getToken();
280
- console.log("t2", t2);
281
if (t2.type == "}") break;
282
if (t2.type != "var") throw new Error("オブジェクトの定義には名前が必要です");
283
const name = t2.name;
284
const t4 = this.getToken();
285
- console.log("t4", t4);
286
if (t4.operator != ":") throw new Error("オブジェクトの定義は名前の後に : が必要です");
287
const value = this.getExpression();
288
properties.push({
@@ -297,7 +295,6 @@ export class Parser {
297
295
if (t3.type == "}") break;
298
296
if (t3.type != "operator" && t3.operator != ",") throw new Error("オブジェクトの定義は , で区切る必要があります");
299
}
300
- console.log(properties);
301
return {
302
type: "ObjectExpression",
303
properties,
0 commit comments