소스 검색

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…
취소
저장