-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try to fix windows build #20
Conversation
Looks like destructuring is also failing. Perhaps bringing in @babel/preset-env and setting it to IE11 would get allow for all the needed features to be transpiled. |
Symbol('foo') turns to Symbol{} |
What is better to add a babel plugin to transform Object.entries, Object.assign or write polyfill manually? |
We seem to only use const table = {
objects: loupe,
'objects (Object.create(null))': (obj, ...rest) => {
const newObj = Object.create(null)
for(const k in obj) {
Object.defineProperty(newObj, k, Object.getOwnPropertyDescriptor(obj, k)
}
return loupe(newObj, ...rest)
}
}
for (const suite of table) {
const inspect = table[suite] |
If i changle like this, than it works for (const suite of Array.from(table)) {
const inspect = table[suite] Or just for (const suite in table) {
const inspect = table[suite] Sorry, I accidentally deleted your commit, can you push it again? |
Yeah sorry I meant I've pushed the changes. 🤞 this build passes! Thanks for all your awesome efforts here @flaambe! |
I think it will be difficult to fix everything without polyfills (Set, WeakSet, Promises and etc). What do you think about it? @keithamus |
Sadly our guideline is to support IE11 until EOL: https://github.com/chaijs/guidelines/blob/master/support-cycle.md#internet-explorer We can load polyfills in the local test harness, but the library must run without them, as we cannot mutate the global environment within user's test harnesses. They might want to bring in alternative polyfills. |
Ok, thanks for explaining |
@flaambe I just pushed up a new commit. If you want to continue force pushing to this branch it might be worth using |
@keithamus Ok I think the problem is that IE map,sets do not accept arrays |
It's strange, the documentation says that the |
Maybe just skip tests where the IE doesn't support |
Tests must consistently pass for IE11 as they do in other browsers. If IE11 has different results when people come to depend on them that will not be ideal. We should instead polyfill the test environment to ensure these pieces are there. |
Looks like the only thing failing now is --- lib/symbol.js
+++ lib/symbol.js
@@ -1,3 +1,6 @@
export default function inspectSymbol(value) {
+ if ('description' in Symbol.prototype) {
+ return `Symbol(${value.description})`
+ }
return value.toString()
} |
If you have time, see what can be done. I'm busy now, I’ll be free in 2-3
hours.
|
As I said above @keithamus Symbol('foo') turns to Symbol{} |
Yeah, I see that. Not sure where that is coming from. |
I think I should rebase, since there are a lot of unnecessary commits, but first we need to decide what to do with |
I think this is a problem, because of the bundle Rollup + Babel. Maybe just skip these 3 tests for now, as I don’t see a solution? @keithamus |
-drop karma-detect-browsers -target IE11 with preset-env -use corejs -number and description error keys added -use dateObject directly
I've got a good feeling about this one @flaambe |
🎉 congratulations @flaambe! You did it! Thank you so much for all your work on this 👍 |
Thank you for all the advice @keithamus |
Tests to fix: