Przeglądaj źródła

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 lat temu
rodzic
commit
0b4d63ee91
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      bin/oslo.js

+ 1
- 1
bin/oslo.js Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz