소스 검색

some more protected identifiers.

Nicolas Cannasse 19 년 전
부모
커밋
d6c0ea20dd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      genswf8.ml

+ 1 - 1
genswf8.ml

@@ -161,7 +161,7 @@ let new_call ctx kind n  =
 	ctx.stack_size <- ctx.stack_size - n
 
 let always_protected = function
-	| "prototype" | "toString" | "__resolve" -> true
+	| "prototype" | "toString" | "__resolve" | "__constructor__" | "__proto__" -> true
 	| s ->
 		if String.length s > 0 && s.[0] = '$' then
 			true