mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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'];
|
||||
// Create empty entries by the amount of lines + 1, so join can be
|
||||
// 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 = {
|
||||
version: 3,
|
||||
file: url,
|
||||
|
|
Loading…
Reference in a new issue