Explorar o código

some more protected identifiers.

Nicolas Cannasse %!s(int64=19) %!d(string=hai) anos
pai
achega
d6c0ea20dd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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