lc2-compiler
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -1863,2 +1863,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.LCP = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
var { parse } = require('./parse'); | ||
var { buildIn } = require('./identifier'); | ||
@@ -1879,3 +1880,3 @@ var reservedName = /^[^\w]/; | ||
// Check import list before procede | ||
this.fixAllImport(baseAst.metadata.imports); | ||
var imports = this.fixAllImport(baseAst.metadata.imports); | ||
// Mark the base file as parse at the beginning | ||
@@ -1886,3 +1887,3 @@ var baseSource = this.options.sourceFile; | ||
this.importScriptRecur(baseAst.metadata.imports, path.dirname(baseSource)); | ||
this.importScriptRecur(imports, path.dirname(baseSource)); | ||
@@ -1935,6 +1936,6 @@ // Combine everything when done with parsing | ||
checkPcTable(pcsMap, pcTable) { | ||
var buildin = this.options.extraBuildIn || []; | ||
var allBuildin = (this.options.extraBuildIn || []).concat(buildIn); | ||
for (var process in pcTable) { | ||
if (!pcsMap[process] && buildin.indexOf(process)) { | ||
if (!pcsMap[process] && allBuildin.indexOf(process) === -1) { | ||
throw new Error(`Invalid call of process: ${process}`); | ||
@@ -1951,3 +1952,3 @@ } | ||
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) | ||
},{"./parse":8,"fs":undefined,"path":undefined}],10:[function(require,module,exports){ | ||
},{"./identifier":3,"./parse":8,"fs":undefined,"path":undefined}],10:[function(require,module,exports){ | ||
// The assignment of fine-grained, information-carrying type objects | ||
@@ -1954,0 +1955,0 @@ // allows the tokenizer to store the information it has about a |
{ | ||
"name": "lc2-compiler", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "lemoncase2 parser", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.js", |
129811
3684