Browse Source

Make sure source gets passed in as a string

I noticed that if you passed in just a number, JS
would helpfully parse that and then
`source.length` was undefined, which broke the
lexer.
master
Dylan Baker 5 years ago
parent
commit
0b4d63ee91
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      bin/oslo.js

+ 1
- 1
bin/oslo.js View File

@@ -90,7 +90,7 @@ class OsloCLI {
90 90
   }
91 91
 
92 92
   inline(source) {
93
-    return oslo(source, this.context)
93
+    return oslo(source.toString(), this.context)
94 94
   }
95 95
 
96 96
   absolutePath(file, root = null) {

Loading…
Cancel
Save