浏览代码

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) {

正在加载...
取消
保存