Преглед на файлове

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 години
родител
ревизия
0b4d63ee91
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      bin/oslo.js

+ 1
- 1
bin/oslo.js Целия файл

@@ -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…
Отказ
Запис