HTML5Thread: Haxe 3 compatibility fixes
This commit is contained in:
@@ -96,7 +96,7 @@ class HTML5Thread {
|
||||
var thread:HTML5Thread = new HTML5Thread(url.href, new Worker(url.href));
|
||||
|
||||
// Run `job` on the new thread.
|
||||
thread.sendMessage(job);
|
||||
thread.sendMessage(#if !haxe4 cast #end job);
|
||||
|
||||
return thread;
|
||||
#else
|
||||
@@ -416,7 +416,7 @@ abstract WorkFunction<T:haxe.Constraints.Function>(WorkFunctionData<T>) from Wor
|
||||
else
|
||||
{
|
||||
#if !macro
|
||||
this.sourceCode = (cast this.func:Function).toString();
|
||||
this.sourceCode = (cast this.func #if haxe4 :Function #end).toString();
|
||||
if (this.sourceCode.indexOf("[native code]") < 0)
|
||||
{
|
||||
// All set.
|
||||
|
||||
Reference in New Issue
Block a user