gpt4 book ai didi

javascript - GWT 网络 worker unflattenKeylistIntoAnswers 未定义

转载 作者:行者123 更新时间:2023-11-30 05:52:42 25 4
gpt4 key购买 nike

我在 GWT 中运行网络 worker 时遇到问题,以防我为多个代理构建它们。我收到一条错误消息,指出未定义 unflattenKeylistIntoAnswers 函数。事实上,该函数是为主要 JS 定义的,但为 Web worker JS 定义的。此外,还未定义其他一些函数,例如 computePropValue。

我错过了什么吗?也许是某种旗帜?

这是我的 gwt xml 文件:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Could not determine the version of your GWT SDK; using the module DTD from GWT 1.6.4. You may want to change this. -->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6.4//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-source/core/src/gwt-module.dtd">
<module rename-to="BucketsSnapperWorker">

<inherits name="path.to.Core" />

<source path="" />

<!-- Use the WebWorker linker for a Dedicated worker-->
<add-linker name="dedicatedworker" />

<entry-point class="path.to.EntryPoint"/>

<set-property name="user.agent" value="safari,gecko1_8"/>
</module>

最佳答案

从 GWT 2.5 开始,您需要强制 GWT 编译器只为 worker 生成一个排列。将此添加到您的 gwt xml 文件(替换您的 user.agent 属性):

<set-property name="user.agent" value="safari"/>
<set-configuration-property name="user.agent.runtimeWarning" value="false" />

在我的例子中,工作人员还使用“safari”user.agent 选项在 Firefox 中运行。

关于javascript - GWT 网络 worker unflattenKeylistIntoAnswers 未定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13730085/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com