mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Support PaperScript code with only one line and no breaks.
This commit is contained in:
parent
15d79bbefb
commit
288b8553e7
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ Base.exports.PaperScript = (function() {
|
||||||
var mappings = ['AAAA'];
|
var mappings = ['AAAA'];
|
||||||
// Create empty entries by the amount of lines + 1, so join can be
|
// Create empty entries by the amount of lines + 1, so join can be
|
||||||
// used below to produce the actual instructions that many times.
|
// used below to produce the actual instructions that many times.
|
||||||
mappings.length = code.match(lineBreaks).length + 1 + offset;
|
mappings.length = (code.match(lineBreaks) || []).length + 1 + offset;
|
||||||
sourceMap = {
|
sourceMap = {
|
||||||
version: 3,
|
version: 3,
|
||||||
file: url,
|
file: url,
|
||||||
|
|
Loading…
Reference in a new issue