فهرست منبع

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